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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -