iOS 8: Autorotation is not working without storyboard

前端 未结 5 783
清歌不尽
清歌不尽 2021-01-14 06:28

So I am trying to start a project w/o Storyboards and I can\'t seem to figure out why the UIWindow is not passing autorotation commands to the root view controller. With st

5条回答
  •  渐次进展
    2021-01-14 06:43

    I think your code is correct and you are seeing one (of many) bugs of XCode 6.1.

    I tried a very simple app with 6.1 using your code and I could experiment the bug. Then I downgraded to 6.0.1 and the autorotation of my app was perfect.

    I advice you to downgrade to XCode 6.0.1 and retry your app.

    You can download it from here: Apple Downloads

提交回复
热议问题