Search code examples
iosuinavigationcontrollerautorotateuimodalpresentationstyle

UIModalPresentationCurrentContext and autorotation


I have a UINavigationController as root. And I want to present transparent modal VC on it. I set modalPresentationStyle to UIModalPresentationCurrentContext on UINavigationController.

When I present VC it's transparent but autorotation works without animations and bottom VC wont rotate.

Looks like bug. But how I should implement right behavior?


Solution

  • My solution is not to use UIModalPresentationCurrentContext.