I have a XIB in interface builder that is in Portrait mode and has 5 UILabels on it spaced evenly across the view. When the iPhone is rotated right or left I want the labels to spread evenly across the view to take full advantage of the extra screen width.
I can do this with one control really easily using the Size&Position bit of Interface Builder but how do I set up the other controls to do this?
Is this something you have to do programmatically?
Thanks
Mike

You can try and do it by setting the autoresizingMask property that UIView has. This would be the easiest way, if you can get it to do what you want. You can set this wherever you create or initialize your views:
view.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;It’s possible that you won’t be able to get the exact positioning for all 5 of your labels this way; but you should definitely be able to use it for at least some of them. For the rest, you want to implement the UIViewController‘s
willRotateToInterfaceOrientation:duration:method. This will get called whenever the iPad rotates, and you can set up the location of your labels inside that method.