device rotated but screen not stretches

2 Solutions Collect From Internet About “device rotated but screen not stretches”

You should reset the views frame when the device is about to be rotated. This should be usually done in willRotateToInterfaceOrientation method.

You can also simply use autoResizingMask which will automatically resize the view when its superView frame changes.

// Add this line in loadView method
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | 
                             UIViewAutoresizingFlexibleHeight;

read this tutorial:

http://www.shinstudio.com/blog/programming/rotating-view-in-iphone-app/

implementing willRotateToInterfaceOrientation will be solution