iphone - splitview controller loaded in portrait and then to landscape -
i dynamically removing view , adding splitviewcontroller. have problems in landscape mode. when same loading in landscape mode view first loaded in portrait , turning landscape mode. there way solve problem. there temporary flickering , ux not pleasing.
i ran similar problem earlier today, removed previous views had added uiwindow, added other viewcontroller resolved issue, so;
-(void)loginwassuccessful { // discard login view controller, , nil out [self.loginviewcontroller_ipad.view removefromsuperview]; self.loginviewcontroller_ipad = nil; self.splitviewcontroller.view.hidden = no; self.splitviewcontroller.view.alpha = no_alpha; // create animation block that'll fade out splash view, , fade in split view controller (that houses employee search) [uiview animatewithduration:login_to_emp_search_fade_animation_duration animations:^{ // remove , nil splash , login view window... self.splashview.alpha = no_alpha; self.splitviewcontroller.view.alpha = full_alpha; }]; hope helps!
Comments
Post a Comment