Custom UIViewController is not responsive to device rotation

Posted by Wayne Lo on Stack Overflow See other posts from Stack Overflow or by Wayne Lo
Published on 2010-03-18T17:39:07Z Indexed on 2010/03/18 17:41 UTC
Read the original article Hit count: 881

I have a custom UIViewController, which is the only subView of UIView. The UIViewController contains delegate function:

  • (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; }

This function is called once when the application starts and is never called again when the device is rotated. I also notice that the willRotateToInterfaceOrientation function is never called. I pretty much commented out all the content in the UIViewController but it is still not responding to device rotation.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about rotation