Create a project for iOS5 on Xcode 4.6

Please tell me how I can create a project for iOS5 + in my Xcode 4.6, where all the builds for iOS6 +

I am changing the deployment goal

enter image description here

And how to change the base SDK? Or maybe I can’t change it?

enter image description here

And what should I do so that my Xcode shows me warnings if I try to use methods that can only be used in iOS 6+?

+5
source share
2 answers

. - , . iOS 5.0, , iOS 5.0 . SDK - SDK, . SDK.

, iOS5.0 , 5.0. SDK. , SDK , ios6, iOS6. SDK, . , , , . , .

. , autoLayout . ios5

+6

, , ios 5 api . ios 5.0 ( ), , ios6 ( ).

ios6 :

  • ( )
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_6_0
 // Your ios6 code goes here
#endif

2: : [[[UIDevice currentDevice] systemVersion] floatValue] > 6.0

+1

All Articles