Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to target iOS 5 and iOS 6

Here's my predicament. I have an app that I would like to update to handle the new screen size (among other things) of the iPhone 5. In order to do this I need to target iOS 6. But by targetting iOS 6 I'm preventing a large number of iPhone users from downloading my app since it will take quite some time for people to get around to upgrading to iOS 6 on their iPhone 4/4S. So what is the best approach? How do I move ahead, but at the same time provide backwards compatibility? Any suggestions would be great.

Thanks.

like image 423
Jacob Joz Avatar asked Sep 28 '12 04:09

Jacob Joz


People also ask

How do I change my target version in Xcode?

Change deployment targetSelect your app target and go to General tab, under Deployment Info change target to whatever version you want to support.

What is iOS deployment target?

In short, every application that runs on one of Apple's platforms has a deployment target. A deployment target is nothing more than the minimum version of the operating system the application can run on. Fire up Xcode and create a new project by choosing the App template from the iOS > Application section.

How do I lower a deployment target in Xcode 11?

Update deployment target If you haven't already, change the deployment target to the lowest iOS version you want to support, select the project name then select your app target, choose General and change the version in Deployment Info.


1 Answers

If your app supports the new 4" iPhone 5 screen size, there is no need to exclude support for previous iOS versions.

All you need to do is create a 4" sized launch image, and iOS 6 will recognise that and launch your app with the full screen size. Older versions of iOS will ignore the strange size launch image, and continue to work as they always have.

You do need to upgrade to Xcode 4.5 to add this image, but you can leave the "Deployment Target" for your project at 5.0 or 4.3 or whatever.

like image 152
Greg Hewgill Avatar answered Sep 30 '22 01:09

Greg Hewgill