iOS6: supportedInterfaceOrientations not working (is invoked but the interface still rotates)

前端 未结 15 642
野趣味
野趣味 2020-11-29 04:09

In my app I have multiple views, some views need to support both portrait and landscape, while other views need to support portrait only. Thus, in the project summary, I ha

15条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 04:15

    my solution : subclassed UINavigationController and set it as window.rootViewController

    the top viewcontroller of the hierarchy will take control of the orientation , some code examples : subclassed UINavigationController

提交回复
热议问题