objective c - UIModalPresentationFullScreen is not working properly in iPad Landscape? -
objective c - UIModalPresentationFullScreen is not working properly in iPad Landscape? -
i have show info in modalviewcontroller ipad
. have nowadays viewcontroller2
viewcontroller1
modalview
full screen
. viewcontroller1 in uitabbarcontroller
, viewcontroller2 should hide tabbar. so, used code show viewcontroller2 viewcontroller1,
uiviewcontroller *viewcontroller2=[[uiviewcontroller alloc] init]; viewcontroller2.modalpresentationstyle = uimodalpresentationfullscreen; [self presentmodalviewcontroller: viewcontroller2 animated:yes];
when phone call viewcontroller2 in landscape mode, viewcontroller shows half of screen in viewcontroller1. , also, simulator automatically alter portrait , automatically homecoming landscape mode. problem in this? can please help me find solution? in advance.
set modelpresentationstyle uimodalpresentationcurrentcontext. may solve problem. solved problem.
objective-c ios uiinterfaceorientation presentmodalviewcontrolle orientation-changes
Comments
Post a Comment