ios - iOS8 AutoRotation Not Working On PageSheet Modal -
here code have below, when present manualviewcontroller
, autorotation works when presented uimodalpresentationfullscreen
.
but when presented uimodalpresentationpagesheet
, there no rotation whatsoever.
can explain why happening, or if there solution ?
manualviewcontroller *controller = [manualviewcontroller new]; [controller setdocumentid: [[[self fetchedresultscontroller] objectatindexpath: indexpath] objectid]]; [controller setshowsdonebutton: yes]; [controller setdelegate: self]; navigationcontroller *navcontroller = [[navigationcontroller alloc] initwithrootviewcontroller: controller]; [navcontroller setmodalpresentationstyle: uimodalpresentationpagesheet]; [navcontroller setmodaltransitionstyle: uimodaltransitionstylecoververtical]; [navcontroller setshouldautorotate: yes]; [navcontroller setsupportedinterfaceorientations: uiinterfaceorientationmaskall]; [self presentviewcontroller: navcontroller animated: yes completion: nil];
Comments
Post a Comment