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

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?

Related

IOS Launch screen storyboard shows up in different orientation

I have an IOS app built with XCODE 11 which is landscape only(right+left).We are trying to move from Legacy launch images to Story board Launch screen.
The issue seems to be that the new launch screen appears as expected in landscape mode but when the device is in portrait orientation, the launch screen also appears in portrait , which looks weird because the image is meant to be in landscape to match the app orientation.
Note: The app launches in landscape after the launch screen irrespective of how the device is held.
Is there a way to lock the launch screen orientation to match the app (Landscape left+right)?
Been stuck on this issue for a while, appreciate any inputs :)
Have you tried set Supported interface orientations landscape in your info.plist only ?

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

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

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.

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