Reputation: 29
I need to have two different versions or more of the same IOS app with new versions for ios7, ios6, like wise. So devices which is not compatible of handling the ios7 will get the ios6 version app. Is this possible, how will the app id be for such situation.
Upvotes: 2
Views: 2020
Reputation: 12093
It is possible to have a lite version and a full version of your app that is fine just create two different targets in xcode.
For having a completely different versions for iOS I'm sorry but unless you do this in your code and change based on checking the iOS version being used this isn't possible to create different targets for different deployment versions (iOS versions). If you put your deployment target as iOS 6 it will also run on iOS 7 there is no way of stopping that and the same would be if it was set to iOS 5 it will run on iOS 6 and iOS 7 and it is your responsibility to make sure it does work on these iOS versions no one elses.
As an additional note from the 1st February all apps submitted to the Apple App Store Review process must be iOS 7 optimized https://developer.apple.com/news/index.php?id=12172013a
You can check the iOS version a couple of ways:
1) Many check the current device system version [[UIDevice currentDevice] systemVersion];
2) Are some like to check the NSFoundationVersionNumber
Upvotes: 1
Reputation: 33101
There are 2 options here
I would highly recommend implementing #1. You can check the iOS version at runtime using
[[UIDevice currentDevice] systemVersion]
Upvotes: 3