I used a UIViewController from another UIViewController with a presentation style of UIModalPresentationCurrentContext . But this will not let me rotate the presentingviewcontroller (The UIViewController that introduced the new UIViewController )
self.modalPresentationStyle = UIModalPresentationCurrentContext; NewViewController *newViewController = [[NewViewController alloc] initWithNibName:@"NewViewController" Bundle: nil]; [self presentViewController:newViewController animated:YES completion:nil];
When I rotate the device, it will rotate the newViewController and statusbar , but not presentingviewcontroller
PS: Here, presentingviewcontroller is self .

ios objective-c iphone uiviewcontroller ipad
Cafefe
source share