Minimum iOS version for retina 4" support - iphone

Is there any minimum iOS version restrictions on using full-sized retina 4" screen? May I just use autoresizing masks and iOS 6 SDK for building an app with deployment target < iOS 6, which will run fullscreen on new retina display?

Building an app that takes advantage of the 4" screen requires Xcode 4.5 with a Base SDK of 6.0. The Deployment Target can be anything from 4.3 on up to 6.0. You just need to add the new Default.png specific to the 4" screen. Do this on the Summary tab of your project target. That's it. As long as your code properly sizes itself to the screen (regardless of its size) then your app will do what it is supposed to do.

Related

AppStore application sumbission xcode 4.2 failure because of launch image

I am trying to submit my first iOS application to AppStore using xCode 4.2.
I always get status of : "Invalid binary".
For the first time I got the following explanation:
"
iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. New iPhone apps and app updates submitted targeting iOS 6 and above must support the 4-inch display on iPhone 5 and must include a launch image with the -568h size modifier immediately following the portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images
"
but when I add the requested launch image I get another failure with following explanation:
"
Invalid Launch Image - Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later.
"
My target OS is iOS 5.
Please help
You need to target for iOS 6 as iPhone5 is shipped with iOS6, then you can add the launch image with -568h size.
Now apple will accept apps that will support iOS 6.0 or later along with previous iOS version support. For that, you need launch image for retina display (iPhone 5 as well.)
You need following launch images for iPhone(only):
640 x 1136
640 x 960
320 x 480
You are targeting iOS 5, its not an issue. Even you can submit a app targeting iOS 4.3.
Issue is, your application is not optimized for iPhone5, you must add the launch images for iPhone 5 and iPhone 5 launch image resolution(pixel) should be exact 640x1136 (png). You should add it from Target>Launch Images.
You need to set target for latest iOS 6 and for icon , image size for app store please follow the below URL
iPhone , iPad icon size for Retina and non retina

iOS 5 app with 4 inch screen

I'm writing an app that needs to target a minimum of iOS 5.
I've also written it so that it is compatible with the iPhone 5 4" screen.
I'm not 100% certain but I think I saw something around that said Apple will not allow apps to use the full 4" screen without being a minimum target of iOS 6.
i.e. if you target iOS 5 and your app uses the 4" screen then the app will be rejected.
Is this true? If so I'll have to decide what to sacrifice.
No this isnt true, you can set the minimum iOS version in the build settings to 5.0, and still support iphone 5 screens.
The sort-of-reverse is true, though. If the Base SDK isn't 6.0, then you can't use the iphone 5 screen size (which would be impossible anyway since no iphone5 can use < 6.0).
There are some sacrifices you have to make though, like you can't use autolayout if you also support ios5. You'll have to handle the varying screen size manually.

Is it possible to test your app on iPhone 5 using the 3.5 inch form factor in Xcode?

When I am building an application for both the iPhone 3.5 inch & iPhone 4 inch, is it possible to test both form factors using the iPhone 5, instead of having to keep switching between phones?
I know that the iPhone 5 automatically puts black bars beneath and above any app that is not iPhone 5 compatible, but it would be great to be able to test apps in that way.
I doubt it's currently possible, as I haven't found any options for that in Xcode myself, but it would be awesome if Apple would add that feature. Thanks in advance for any responses.
If you remove the Default-568h#2x.png from the project (just remove it's target membership) and clean the project you app is presented in 3.5 inch mode.
There is not way the set the run parameter too force it in 3.5 inch mode. You could also just connect both iPhones to you development machine and when you want to debug the app select the device you want to test on.
I think it should be enough to not supply a Default-586h#2x.png launch image. Just have Default.png and Default#2x.png, then the app should be letterboxed on the 4" simulator.

space left on header and footer in 4 inch retina iPhone simulator

why some space left on header and footer portion of iPhone 4-inch simulator. its running fine on normal iPhone screen.i just developed app on Xcode 4.3 but after upgrading to 4.5 there one option to change simulator retina to 4 inch screen and its left some space automatically on header and footer which i focus by red box in below image.
You'll see that you have a warning about the Default-568h#2x.png file, the retina display splash. Add it and if the screen was designed properly it should fill the black gaps.
Probably your application doesn't support iPhone 5 (4" screen). You can enable support of this screen by adding to your project launch image 4" - Default-568h#2x.png (640x1136 px)
I think you are using simulator 6.0 for running your Project.
It's for iphone 6 development.
so change your simulator to below version from 6.0 or
Just Rename your Default.png to Default-568h#2x.png
Hope it will helps you.

Is it possible to build an app for iPhone 5 screen size with the former SDK (iOS5)?

The latest SDK (Xcode 4.5) doesn't support armv6 and I need to support it right now, so I don't want to upgrade Xcode. Can I support iPhone 5 screen size and make an app in non letterbox mode on iPhone 5 from the previous Xcode (4.3.2)?
[edit] Comment by Brad Larson, change it all : Apple is now explicitly rejecting applications submitted with the iOS 5.x SDK and iPhone 5 default images, saying "Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later."
You can build an app that is compatible with iPhone 5 screen size by adding the 640x1136 Default-568h#2x.png in your resources (if the splash screen defined in your Info.plist is Default.png).
Xcode below 4.5 will let you test on iOS6 devices which is a new for Apple as when iOS5 arrived, all previous version of Xcode where not compatible with iOS5 (impossible to test on iOS5 devices).
So, YES you can develop for iOS6 and iPhone5 screen size from Xcode 4.4 or 4.3.