ios - how to hide the navigation bar in delegate -
i want hide navigation bar in app. using tab bar controller in app.
for hiding, using below code on tab first controller (and controller avoid error).
-(void)viewwillappear:(bool)animated { [self.navigationcontroller setnavigationbarhidden:yes animated:yes]; }
this hiding navigation bar on each controller can see navigation bar getting hided @ top. see effect.
however don't want see effect , hence want hide navigation bar when app loaded.
hence trying handle in - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions
or - (void)applicationdidbecomeactive:(uiapplication *)application
.
any idea how can in delegate?
main motto not see effect on each tab. atleast on home tab fine, don't want see on tabs.
use animated:no
instead:
-(void)viewwillappear:(bool)animated { [self.navigationcontroller setnavigationbarhidden:yes animated:no]; } [self.navigationcontroller setnavigationbarhidden:yes animated:no]; ^^^
Comments
Post a Comment