Prohibit-Rotation in iOS 8 für UIModalPresentationCustom modalPresentationStyle
Ich verwende dies, um einen clearColor UIViewController in iOS 8 zu präsentieren:
self.modalPresentationStyle = UIModalPresentationCustom;
[_rootViewController presentViewController:self animated:NO completion:nil];
n diesem UIViewController setze ich
- (BOOL)shouldAutorotate
{
return NO;
}
Aber ich kann diesen viewController drehen, wenn ich selbst präsentiere, wenn ich @ benutself.modalPresentationStyle =UIModalPresentationCurrentContext
es wird nicht clearColor aber kann nicht drehen. Wie kann bei UIModalPresentationCustom-Stil die Drehung verhindert werden?