Supporting iOS 4.3 to iOS 6.0

后端 未结 3 785
陌清茗
陌清茗 2020-12-21 21:29

I already have the base code that supports ios 4.3 to ios 5. Now I would also like to support ios 6.0. The present base code has modal views, hard coded

3条回答
  •  无人及你
    2020-12-21 22:26

    Yes, we can do this by setting up the Deployment Target to iOS 4.3. But then, why do you need to support iOS < 5.0 as around 85-90% of devices are on iOS 5.0+. See this

    Also, when you set up support for iOS 4.3 or even iOS 5.1.1, you would have to handle multiple things. For example, the method for Orientation,

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    

    isn't called for iOS 6. It is replaced by the methods,

    - (NSUInteger)supportedInterfaceOrientations
    
    - (BOOL)shouldAutorotate
    

    You would need all the iOS versions on devices and then test each and every aspect of your app.

提交回复
热议问题