So, after a couple months of resisting, I finally decided to update to Xcode 4. (Both for the new iOS 5 stuff, and for GIT support [which I need for some new projects]).
It’s actually a fairly nice update to Xcode, with lots of nifty new things that make life easier, but one thing that drove me crazy was how difficult it was to discover how to rotate my iPad layout in Interface Builder from Portrait to Landscape. So, in an effort to save you some time, here’s how you do it:
* Open your layout file.
* Select the view you want to rotate. This will give it a green highlight.
* Click the green highlighted border. It should turn blue. (This can be tricky. You may have to drag across it to select it properly.)
* Open the Utilities menu, and click the “View” Icon. (It’s 3rd from the right. For some reason, it looks like a shield. Go figure.)
* At this point, you should see a list of iPad/iPhone Simulated Metrics. One of those is “Orientation”. Pick “Landscape” from this menu and you’ll be done. (Note that you will only see these metrics if the view is properly selected and has a blue border. If not, you’ll see the normal view options, which do NOT have any orientation controls in them.)
The attached photo shows a slice from the Xcode 4 window that has the correct setup.