3 ms·
> You should not see any difference in the different versions of iOS. Wrong. Any OS feature available only in version N and above may be used conditionally whi
by masklinn 15y ago
> You should not see any difference in the different versions of iOS.
Wrong. Any OS feature available only in version N and above may be used conditionally while the application still works on versions N-1 and under.
Case in point: Apple's Game Center is only available from iOS 4.2 (which excludes 1st generation iPod Touch and original iPhones), and is not available on iPhone 3G.
What if a game developer is OK with a 4.0 baseline, or even a 3.1 baseline so iPhone and Touch 1 users can still play, but he still wants users with compatible devices to have access to Game Center achievements and voice chat?
He conditionally enables the feature.
> If you don't want iPhone 3g users to use the app, they shouldn't be able to download it that that device in the first place etc.
Set UIRequiredDeviceCapabilities correctly and that's done for you. For instance, the 3G iPhone uses ARM v6 and only provides OpenGL ES 1.1. Require armv7 and opengles-2 and you've ensured your application will not be installable on 3G iPhones.
For an example of that, see Infinity Blade [0] which clearly states it is not compatible with the 3G (more precisely, it specifies that it's for 3GS and 4 in the "required configuration" section) and which will not install on a 3G.
[0] http://itunes.apple.com/fr/app/infinity-blade/id387428400?mt=8 http://itunes.apple.com/fr/app/infinity-blade/id387428400?mt...