In portrait orientation my view is 744px in height. I want to change this height when it is in landscape view. How can I do this?
A:
In the sizing inspector in Interface Builder, set the "struts & springs" for the resizing behaviour you want. If you want to control the size by code, just create a CGRect
and set the view's frame to the rect.
Paul Lynch
2010-05-14 13:52:09
A:
You need to override (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
method in your view controller. In the overriden method you need to call superclass method and then resize your view appropriately.
Vladimir Grichina
2010-05-14 22:12:58