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
- Player fails to launch on iOS when using Shader Variant Collections
- Player Tags list shows extra blank space behind the scrollbar in the "Player Tags" settings window
- Edit Angular Limits gizmo handles are small and easy to miss-click in the Scene view
- Duplicate Player Tag save fails silently with no error or validation message
- Letters on the left side move further as Letter Spacing is increased when Advanced Text Generator is used and Alignment is set to Center
This is a duplicate of issue #1190428