I'm attempting to present a VC on top of a VC using UIModalPresentationCurrentContext in order to see the view behind it. The code below works:
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 pushed the rotation looks completely messed up. Instead of cleanly rotating it stretches the view awkwardly to fit the new orientation.
Furthermore, when I subclass the transparentViewController I find that its viewwillautorotate methods aren't being called! (Even though it is rotating in its messed up animation way)
Is the UIModalPresentationCurrentContext style not meant to rotate? Is there anyway around this? Has anyone else run into this issue?