iOS 8: Autorotation is not working without storyboard

前端 未结 5 751
清歌不尽
清歌不尽 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:42

    Make sure you enable the device orientations in the project's General settings

    in xcode 6.1, click your main project folder, General tab

    Scroll down to Device Orientation, enable "Portrait", "Landscape Left", "Landscape Right"

    See iOS 8.1 auto rotation for a picture of the Device Orientation settings

提交回复
热议问题