iphone - Nav Bar disappearing on popviewcontroller -
on 1 of views, when button pressed phone call view splitviewcontroller
. if splitviewcontroller
called via 1 of these buttons have special objects add together view. nav bar items, cancel button. view can accessed elsewhere , these items not needed why there special condition.
however, when user done , pop viewcontroller
previous screen selected, nav bar disappears on screen. not setting hidden nor doing unusual nav bar. adding splitviewcontroller
popping back.
some code..
//declare split screen vc splitscreenviewcontroller *split = [[splitscreenviewcontroller alloc] init]; //set flag vc coming button, need nav bar items [split setisfrombutton:yes]; [self.navigationcontroller pushviewcontroller:split animated:yes];
now phone call simply...
- (void)cancelselectionbtnclicked { [self.navigationcontroller popviewcontrolleranimated:yes]; }
and when view returns, nav bar gone.
any ideas?
edit should noted exact same thing done elsewhere same way(as far can tell) , nav bar visible on return.
in viewcontroller's viewwillappear
can 1 time again create navigationbar
visible.
- (void)viewwillappear:(bool)animated { [self.navigationcontroller setnavigationbarhidden:no]; }
iphone ios objective-c xcode ipad
No comments:
Post a Comment