I had the same problem when trying to use auto resize methods. So I hope this helps. (PS I assume that you are creating the user interface programmatically and not through IB)
So have you tried this?
Inside your view manager, add the following:
// Set the View Controller to fit the whole screen. -(BOOL)wantsFullScreenLayout{ return YES; }
Inside the loadView method, change your scrollView to:
// set the initial size of your scrollView object. [scrollView setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; // Set the auto resizing attributes. [scrollView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
In addition to this, you may need to set the autoresizingmask fields for a UIView or UIImageView depending on the type of layout you need when the device is rotated.
user1436046
source share