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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
This is a duplicate of issue #1190428