If the view initially takes up the entire screen and the application is set to autorotate, all you have to do is set the autoresist mask in the view to change the width and height:
view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Edit: see my comment below how to do this in IB
source share