iOS 8: Autorotation is not working without storyboard

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

    Marked answer is to downgrade to XCode 6.0.1 - I do not recommend it.

    1) If you do not use storyboards (Answer for this topic !!)

    Go to -> Project Name -> Targets -> Project Name -> Deployment Info -> Main Interface -> Make it Empty


    2) In case you use storyboards (not the main answer)

    your AppDelegate should look like ...

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool 
    {
        return true
    }
    

提交回复
热议问题