Interface orientation (Landscape) on iPad weird behaviour on ios 6(xcode 4.5) - ios

I am building a word game app for iPad. I want it to run only in Landscape mode.
1. I have enabled only Landscape in plist settings.
2. The rootview controllers view is also set Landscape.
The issue is when I run it on simulator (ios 6.1), it runs in proper Landscape mode but when I run it on iPad the views are messed up and rotated 90 degree anti clockwise. Do I need to do something else in order to have it run properly on iPad device.

Related

Is there a way to ensure iPad Simulator landscape screenshots are rotated correctly?

Most of the iPad apps I develop are used in Landscape mode. The iPad Simulator always starts in Portrait mode; with ⌘+R I rotate it to Landscape mode. In the past (before iOS 13.0 or 13.1), screenshots made with ⌘+S had the correct rotation, but if I make a screenshot right now it's rotated by 90 degrees.
(click to enlarge)
This is how the Mac desktop looks like when I make the screenshot on the Simulator:
Is there a way to stop this behaviour? I've tried the menu option Hardware -> Rotate Device Automatically but that didn't help.
This issue seems to have been fixed with the release of iOS 14 / Xcode 12. Now, when I take a screenshot of my Simulator in Landscape mode, it is saved in Landscape orientation.

How to rotate an iPhone app when used on an iPad in landscape

Devices is set to "iPhone" under Deployment info. In my Info.plist I have iPhone as Portrait only, and iPad as all 4 options. My app works fine on iPhone (no rotation as expected). It behaves the same on an iPad (no rotation) but of course then to view the app properly I have to hold the iPad like an iPhone with the Home button at the button. I don't want to have to do that. What I want is when the iPad is in landscape, e.g. with a keyboard, for the app to rotate but maintain its iPhone-like appearance, smaller, in the center of the display. How to achieve this?

How to disable portrait orientation for Ipad in swift 2 and xcode 7

I have been having this issue with the layout orientations specifically with ipads. In xcode, I clicked on the project itself in the left panel and disabled portrait layout. This worked for iphones and ipods but not ipads. The application is run on any ipad, the portrait mode is enabled. When turned to the portrait orientation in an ipad, my layout gets squished together and looks very bad. Is there anyway I would be able to only allow the devise orientation to be landscape on every device?
Here is a screenshot of the settings I have

starting iphone only app on ipad (1x/2x mode) from landscape ignores orientation setting of root view

The iPhone app should mostly be used in portrait mode, but for two views rotation to landscape is allowed. So in the settings all orientations are allowed and in most views, including the root view, rotation is prohibited. Everything works as expected on iPhone 5 and iPhone 6 plus. On latter even when the app is started from landscape mode: it shows up in portrait mode. But it does not work on the iPad with the iPad's iPhone-emulation-mode ("1x/2x mode"). When I start the app from the desktop in landscape mode it is presented in landscape mode. This is true for ios 7 and ios 8.
Before I post a lot of code, maybe someone has come across this case before and knows a simple solution?

iPad orientation issue when device is in flat mode

Actually I develop one iPad application. It works fine as desired. But I have orientation issue when initially application launch. Actually i put iPad flat in landscape(Horizontal) style. Now every time when application launch it will open in portrait mode. I checked with supported orientation style and other things also. I put the log in ViewDidLoad for 3 orientation, 1) viewControllerOrientation - portrait
2) ApplicationStatusbarOrientation - portrait
3) DeviceOrientation - Flat.
Now i have trouble even device is in flat mode (it really put like Horizontal) not in portrait, though why always it open in portrait mode.

Resources