iOS 8: Autorotation is not working without storyboard

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

    i just solved the problem in my project. for me, the solution was to remove the animation from the following code:
    [self presentViewController: root animated: animated completion:^{ [AppDelegate singleton].window.rootViewController = root; }]; which is now just [AppDelegate singleton].window.rootViewController = root;

    i don't know if this answers your question, but it solved my instance of what i think is a shared problem.

提交回复
热议问题