ios - Status bar hiding when landscape-only view controller is presented over portrait-only view controller -


i have navigation controller holding view controller supports portrait orientation:

enter image description here

this presents full-screen view controller supports landscape:

enter image description here

unfortunately during transition, status bar on presenting view controller removed, makes content jerk before transition begins. i've implemented custom fade transition make effect obvious:

enter image description here

note status bar not present. done before custom transition starts, no animation, if take snapshot before transition begins , add container view, still see reduced navigation bar momentarily.

is there non-terrible way fix this? don't want have add snapshot outside of transition (like this answer).

i have tried making presentation style custom instead of full-screen, doesn't leave device in portrait orientation. solution using custom presentation style leaves device in landscape orientation acceptable.

there sample project demonstrating problem here

may horrible hack if view jerking bothers rather status bar disappearance change constraints top isn't constrained top layout guide superview top appropriate constant?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -