I want to make my appliaction only in landscape orientation in ios (Both ios 5 and ios 6)

后端 未结 4 974
耶瑟儿~
耶瑟儿~ 2020-12-06 08:25

I have use the Xcode 4.5.1 and use this conditions

#define IOS_OLDER_THAN_6 ( [ [ [ UIDevice currentDevice ] systemVersion ] floatValue ] < 6.0 )
#define         


        
4条回答
  •  悲哀的现实
    2020-12-06 08:42

    There is another way - without setting allowed orientation:

    Try this solution - it works on iOS 5 and iOS 6.

    UINavigationController Force Rotate

    Then, You can implement shouldRotate .. delegate methods, to allow it to rotate only between landscape orientations.

    Good luck!

提交回复
热议问题