我曾经用演示风格呈现UIViewController
来自另一个的。但它不允许我旋转(呈现新的)UIViewController
UIModalPresentationCurrentContext
presentingviewcontroller
UIViewController
UIViewController
self.modalPresentationStyle = UIModalPresentationCurrentContext;
NewViewController *newViewController = [[NewViewController alloc] initWithNibName:@"NewViewController" Bundle: nil];
[self presentViewController:newViewController animated:YES completion:nil];
当我旋转设备时,它会旋转newViewController
,statusbar
但不会presentingViewController
PS:这里presentingViewController
是self
。