Supporting both iOS 6 and iOS 5 autorotation

后端 未结 6 1376
-上瘾入骨i
-上瘾入骨i 2020-12-06 05:46

Can anyone confirm that to support both iOS 6 and iOS 5 there is no point to adding the new iOS 6 autorotation methods, since the Apple docs suggest that these methods are c

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 06:43

    You have to set a flag somewhere (I believe in your Info.plist) that indicates which of the two you use. If you use the new one, you can't build for iOS 5 (or at least, it won't work on iOS 5). If you use the old one, the new methods aren't being called. So yeah, you pretty much have to choose which method(s) you want to use, and if you want to support iOS 5, you cannot use the new methods.

提交回复
热议问题