How do I rotate my iPad application window to landscape in Xcode 4?
11,860
Solution 1
select your view, press cmd+option+0, click on the the shield icon "Show the attribute inspector" and then change Orientation to landscape.
Solution 2
The Window orientation is not very intuitive (since the view and the controller are both controlled by the orientation setting in the "Simulated Metrics" dialog). It's actually controlled at the four corners of the window displayed in the view editor. Just click and drag the corners of the window to resize it.
Author by
robotpukeko
Beginner iOS developer, currently working on my first app for the iPad. Slowly.
Updated on June 05, 2022Comments
-
robotpukeko almost 2 years
In Xcode 3, I was able to select the rotation arrow at the top left of the window to design the window for the application in landscape. However, I can't find the same function in Xcode 4. Can anyone help please?
Thanks.
-
robotpukeko about 13 yearsThat rotates the view correctly, but the window associated with the view is still shown in portrait. It's orientation setting is greyed out.
-
robotpukeko about 13 yearsAnd I also have the issue that when I rotate the iPad Simulator, the view doesn't rotate with it, even though I return YES to shouldAutorotateToInterfaceOrientation in the View Controller. I am using the default iPad application template, if that helps!
-
robotpukeko about 13 yearsSorry for the ranting; it wasn't until I went back to Xcode 3 that I realised the differentiation between the window and the view. Thanks!
-
gonzobrains almost 13 yearsI didn't even realize you could resize the window that way. Duh! Thanks for that tidbit of info. People talk about an arrow to click to change orientation. Any screenshot? I can't seem to find it.