iOS 9 Orientation Auto-Rotation Animation Not Working, But Always on Main Thread

喜夏-厌秋 提交于 2019-11-29 13:53:22

In my case I had target's "Main Interface" set and in application:didFinishLaunchingWithOptions: I have been creating new window and new rootViewController

I'm instantiating my own view controller stack of a navigation controller in app delegate. I fixed the problem by removing the Main interface from the project file.

I'm facing a similar bug. http://imgur.com/gallery/Q3OXCIH

The rotation animation occurs for the status bar (which has the clock and the battery icon), but the view itself just changes size, it doesn't do the page flip animation.

This is somewhat repeatable- at first, the rotation occurs correctly, but after I programmatically change the tab view controller index, it can trigger. After it triggers, the rotation animation does not occur for the view until after I reset the app.

Code where I change the tab view controller and then change it back:

[appDelegate.tabBarController setSelectedIndex:0];
...code to operate on the code at index 0...
[appDelegate.tabBarController setSelectedIndex:2];
threewind

I did change the general setting, and solved this by deleting the Main Interface and Launch Screen File to empty.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!