Search Issue Tracker
Duplicate
Votes
0
Found in
2018.4
2018.4.22f1
2020.2
Issue ID
1246286
Regression
No
[iOS] Storyboard switches to portrait after a second when the device orientation is set to landscape
How to reproduce:
1. Open the attached Storyboard.zip project
2. Build for iOS and deploy the Xcode project to the device
Expected: Storyboard stays landscape
Actual: Storyboard switches to portrait (see the 20200511_140255.mp4 attached)
Reproducible with: 2018.4, 2020.2
Notes:
- The issue doesn't reproduce if I run the app directly from the Xcode project, but I can reproduce it if I disconnect the phone and then run the installed app
-
Resolution Note:
This is a "by design" issue with storyboards: Apple assumes that launch storyboards are handling everything (all orientations), as you cannot tweak the startup view controller at all.
To make it work, with builtin storyboards we created two views with variations, that agree with what they show, so when ios decides to change - nothing is changing visually.
There is a catch, though, as you do variations NOT on orientation but on size traits (compact vs regular), and from experimentation it seems that on iphone what is important is the height class: regular vs compact does the trick (portrait vs landscape).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
This is a duplicate of issue #1190428