IOS 10 UIViewController exposed by Current Current Context does not rotate when device orientation changes

I have set the presentation type to the context of the current context in the storyboard.

When calling segue, the new UIViewController is displayed correctly.

However, when the device orientation changes, the new UIViewController does not rotate, even though its parent UIViewController does.

Searching on StackOverflow I don't see any modern (iOS 9 and up) links to this only hacks for working with iOS 6/7.

If set in code, then UIModalPresentationStyle will be set to overCurrentContext.

+3
ios rotation uiviewcontroller orientation


source to share


No one has answered this question yet

Check out similar questions:

6
UIModalPresentationCurrentContext - rotation methods are not called
6
Window backlight does not rotate after changing device settings
4
UIViewController doesn't update view constraints when device orientation changes
3
How do I block rotation on a UIViewController rendered as a modal form?
1
Change iPad orientation, rotate status bar, toolbars, but not main view
0
Rotate to landscape for views manually added to hierarchy (iPhone)
0
UIViewController modal view and rotation
0
Introduced UIViewController refuses to scheduling using landscape orientation
0
Root UIViewController responds to orientation changes, but the second UIViewController does not
0
Presenting a view controller over the current context layout



All Articles
Loading...
X
Show
Funny
Dev
Pics