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:
this presents full-screen view controller supports landscape:
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:
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
Post a Comment