Technical Q&A QA1688

Why won't my UIViewController rotate with the device?

Q:  Why won't my UIViewController rotate with the device?

A: The UIViewController class provides the fundamental view-management model for iOS applications. It provides automatic support for rotating the views of the view controller in response to changes to the orientation of the device. If the autoresizing properties of your view and subviews are properly configured, this behavior is automatic in most cases. Here is a fairly exhaustive list of reasons a view controller may not rotate.



Document Revision History


DateNotes
2013-04-18

Updated to include changes to autorotation in iOS 6.

2010-07-06

Added the case of not calling super on -(id)init.

2010-04-08

New document that describes situations that can prevent view controllers from rotating.