Trigger.io doesn't set the correct landscape orientation - trigger.io

I have my app forced to be in portrait mode. There are only a few instances where I want to be able to show the app in landscape mode. I have this working but on a physical device forge.display.forceLandscape doesn't set the correct landscape mode (either landscape right or landscape left). The result I get is if I try to move the device from landscape left -> portrait -> landscape right, the screen is upside down.
This all works fine in the simulator.
Is there a way I can force a specific landscape orientation?

Related

iOS launch screen will appear in portrait instead of landscape

I am creating an iOS app that will support iPhone and iPad in landscape and portrait orientations. I have setup my launch screen storyboard with an ImageView and that appears correctly in both landscape and portrait modes in Interface Builder. However, even though I am holding my phone in landscape, the launch screen will always appear in portrait. I have logged my device current orientation in application didFinishLaunchingWithOptions, but it reports UIDeviceOrientation unknown. After the launch screen disappears, the first view appears in landscape as expected.
Do you know why that happens and how to fix it?
Thanks
I think that you haven't open this:

Binding data If we have different views for portrait and LandScape Mode

I have a complicated Screen. And my App supports both Landscape and Portrait mode. So I created two storyBoard for iPAD and iphone. Now How to bind the data if lets say user is in Portrait mode and he is filling some form. If he rotate his device and come to LandScape mode. How we can preserve and show that data in the LandScape View. Please help.

Display a Portrait mode app in Landscape mode on a tv connected via HDMI

I have an animation used for eye tests that has horizontal stripes that move up and down. The app orientation is strictly Portrait mode. The patient rotates the iPhone to landscape mode and watches the stripes move left and right. If the iPhone is plugged into a tv with an HDMI cable the image is strictly portrait mode and the stripes move vertically regardless of the physical orientation of the iPhone. Selecting Landscape mode in XCode target does not work. Is there a way to make the image on the tv screen display in landscape mode without rewriting the app?

XCode run layout mode

Before I ran the app and it was in portrait mode. To change in landscape mode from the iOS Simulator I used Hardware->Rotate
Now, I don't know what I have accidentally changed, whenever I run the app the layout "automatically rotates" to landscape mode...
If I choose Hardware->Rotate it doesn't go to portrait mode but ehm... "really"... rotates it by 90°!!?
What have I messed up? How can I reset the Run to start in portrait mode?
Ok, I found it!
Just use Rotate left multiple times!
It cycles through:
portrait -> landscape -> landscape vertical -> landscape -> portrait...

Do you need a landscape iPad launch image for app thats just portrait

I have made me app so that device orientation is portrait only, however there it still has a place to put landscape launch image. Will I have to have one? If so can I just have a rotated version of the portrait one (i.e. this will be sideways if the device is held in a landscape manner)?
You don't need to have a landscape default image even if you do support landscape.
If you are only in portrait, then a single image will do.

Resources