I am trying to present a VC on top of a VC using the UIModalPresentationCurrentContext to see the presentation behind it. Below is the code:
UIViewController *transparentViewController = [[UIViewController alloc] init]; self.modalPresentationStyle = UIModalPresentationCurrentContext; [self presentViewController:transparentViewController animated:NO completion:^{ }];
However, when I rotate the device after the VC has been pressed, the rotation looks completely broken. Instead of spinning cleanly, he awkwardly stretches his eyes to fit the new orientation.
Also, when I subclass transparentViewController, I find that its viewwillautorotate methods are not called! (Despite the fact that it rotates in a convoluted animation mode)
Is the UIModalPresentationCurrentContext not rotatable? Anyway, around? Anyone else run into this issue?
source share