Rotation behaving differently on iOS6

后端 未结 12 2200
野的像风
野的像风 2020-11-30 06:00

I did an App which is tab-based. Nothing needs to be on landscape mode but a couple of views. It worked OK on iOS5 and I was pretty happy with the result. However with iOS6

12条回答
  •  执念已碎
    2020-11-30 06:52

    From Apple's documentation for shouldAutorotateToInterfaceOrientation:

    Override the supportedInterfaceOrientations and preferredInterfaceOrientationForPresentation methods instead.

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instm/UIViewController/shouldAutorotateToInterfaceOrientation:

提交回复
热议问题