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

后端 未结 4 916
感情败类
感情败类 2020-12-20 19:25

iOS 9.0 (13A340) Xcode 7.0 (7A220) OS X 10.10.5 (14F27)

I have a situation where if I rotate the simulator or device (using iPhone 6s sim and iPhone 6+ device), the

4条回答
  •  温柔的废话
    2020-12-20 20:03

    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];
    

提交回复
热议问题