iOS 6 bug: supportedInterfaceOrientations not called when nav controller used as window root

前端 未结 3 953
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 01:50

In my mainwindow.xib I have a navigationcontroller. On top of (as a sub item) I have another viewcontroller(homeviewcontroller).

In the nib I have set the window\

3条回答
  •  执念已碎
    2020-12-20 02:23

    You need to subclass UINavigationController and override supportedInterfaceOrientations there.

提交回复
热议问题