I am creating an iPad app that is landscape only. I have a main window xib but the window is portrait. When the window is selected and I look at the Simulated Metrics the Orientation shows a dimmed (non selectable) option. In deployment Info landscape Left and Landscape Right are selected. I need landscape so I can design my viewController in landscape.
How can I get the main Window to be in landscape?
In iOS, you do not really use a main window xib, but a storyboard. In the storyboard you can choose "Landscape" from the "Orientation" menu under "Simulated Metrics" without problem when configuring any view controller.
Related
My ViewController won't rotate in storyboard, despite being set to landscape. Furthermore the device orientation have been set to only allow landscape. What am i missing?
My guess is that you have "Use Size Classes" selected. Try this link: Enabling Size Classes in Interface Builder
Is there anyway to rotate the UIViewController displayed on Storyboard as Landscape? By default it displays in a Portrait mode and wondering if there is anyway I can change that?
For iPhone app!
Select UIViewController on storyboard.
tap on Utitlies button at top right corner to show Utilities panel.
Select Attributes Inspector.
Under Simulated Metrics section, you can change Orientation of UIViewController to Landscape.
I have application that is only landscape with no other orentation supported.
But when I open modal view (modal contains UIWebView ([printView setView:webView])) it rotates the device to portrait.
The content stays in landscape view only iPad orientation. I mean the statusbar is rotated like it's in portrait. So I want no rotation at all, just to stay in landscape.
I have solved the problem. Problem was in viewController that was programaticly created.
Solution is to create viewControler and in .m file force landscape orentation.
I want same view in portrait and landscape in splitview in iPad Application. In portrait I get rootviewcontroller as popOver. I don't want that. It should be same as it is displayed in landscape mode. Is it possible?
Well, I'm afraid that the term same is a bit confusing here. There is no problem for you to develop a similar view, but evidently with other size and proportions. You can perfectly dismiss the popover on the portrait mode, and compose your new view with a tableview controller at the left side of the screen.
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.
select your view, press cmd+option+0, click on the the shield icon "Show the attribute inspector" and then change Orientation to landscape.
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.