IOS 9 Orientation Automatic rotation animation does not work, but always on the main topic

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

I have a situation where I rotate a simulator or device (using the iPhone 6s sim and the iPhone 6+ device), the animation also does not take place. I do not know why this is happening. I am not doing anything unusual or crazy with any UIKit methods, and I am not UIKit any method not in the main thread. In addition, the other UIView animations that I added look very good. This is just a twist that has broken. Other apps seem great. I'm not sure what I can do wrong.

No rotation animation

Attempts to find out / solve:

  • This Cocoanetics extension is used to try to find out if there was any UIKit execution in the main thread.
  • The value UIView.areAnimationsEnabled() printed during several points during program execution. He always printed true .
  • The setting of UIView.setAnimationsEnabled(true) not been fixed.

I use the "nav" user view controller (I did one of them): SASlideDrawer (Note. I am not experiencing the same problem only with this project)

Thanks.

+6
source share
4 answers

In my case, I had the target "Main Interface", and in application:didFinishLaunchingWithOptions: I created a new window and a new rootViewController

+18
source

I create my own navigation controller view controller stack in the application’s split. I fixed the problem by removing the main interface from the project file.

+1
source

I encountered a similar error. http://imgur.com/gallery/Q3OXCIH

Rotation is activated for the status bar (which has a clock and a battery icon), but the view itself simply changes its size; it does not perform page flipping animation.

This is somewhat repeatable - at first the rotation happens correctly, but after I programmatically changed the index of the table controller, it can start. After its launch, the rotation animation does not appear for presentation until I reset the application.

The code where I change the tab view controller and then change it:

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

I changed the general setting and solved it by deleting the main interface and the startup screen file blank.

0
source

All Articles