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
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
This is a duplicate of issue #1190428