I can't understand rotation mechanism in iOS6

前端 未结 3 1904
予麋鹿
予麋鹿 2021-02-10 06:33

My app has view controllers subclassing shouldautorotateToInterfaceOrientation. And in it, I decides each view\'s rotation. This works correctly. But in iOS6, t

3条回答
  •  情深已故
    2021-02-10 07:02

    The following link might steer you to the right direction: http://code.shabz.co/post/32051014482/ios-6-supportedorientations-with-uinavigationcontroller

    Basically, you need to subclass UINavigationController and have it listen to changes in -supportedInterfaceOrientations of its topViewController. There is a sample class you can download in the blog post and also explains what code to add.

提交回复
热议问题