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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -