I have a detailed view of a UIViewController that UIViewController from a UITableView to a UINavigationController . In the UIViewController I add several subzones (e.g. UITextView , UIImageView ).
In iOS5 I used this code to stop autorotation if my image extension was increased:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations if (scrollView.isZoomed) { return NO; } else { return YES; }
}
I am trying to do the same in iOS6 using:
- (BOOL)shouldAutorotate { return FALSE; }
However, this method is never called, and the application continues to spin.
Can anyone help?
iphone xcode rotation ios5 ios6
GuybrushThreepwood
source share