I have this code in my AppDelegate for the UINavigationBar:
NSArray *viewsArray;
ToolsViewController *toolsnavigation = [[ToolsViewController alloc] initWithNibName:@"ToolsViewController" bundle:nil];
toolsnavigation.tabBarItem.image = [UIImage imageNamed:@"setting_image.png"];
[toolsnavigation setTitle:@"Tools"];
UINavigationController *nav0 = [[UINavigationController alloc] initWithRootViewController:toolsnavigation];
MyrideViewController *myridenavigation = [[MyrideViewController alloc] initWithNibName:@"MyrideViewController" bundle:nil];
myridenavigation.tabBarItem.image = [UIImage imageNamed:@"bottom_nav_image_2.png"];
[myridenavigation setTitle:@"My Ride"];
UINavigationController *nav1 = [[UINavigationController alloc] initWithRootViewController:myridenavigation];
NewsViewController *newsnavigation = [[NewsViewController alloc] initWithNibName:@"NewsViewController" bundle:nil];
newsnavigation.tabBarItem.image = [UIImage imageNamed:@"bottom_nav_image_3.png"];
[newsnavigation setTitle:@"News"];
UINavigationController *nav2 = [[UINavigationController alloc] initWithRootViewController:newsnavigation];
CoolViewController *coolnavigation = [[CoolViewController alloc] initWithNibName:@"CoolViewController" bundle:nil];
coolnavigation.tabBarItem.image = [UIImage imageNamed:@"bottom_nav_image_4.png"];
[coolnavigation setTitle:@"Cool"];
UINavigationController *nav3 = [[UINavigationController alloc] initWithRootViewController:coolnavigation];
AccidentViewController *accidentnavigation = [[AccidentViewController alloc] initWithNibName:@"AccidentViewController" bundle:nil];
accidentnavigation.tabBarItem.image = [UIImage imageNamed:@"bottom_nav_image_5.png"];
[accidentnavigation setTitle:@"Accident"];
UINavigationController *nav4 = [[UINavigationController alloc] initWithRootViewController:accidentnavigation];
viewsArray = [NSArray arrayWithObjects:nav0,nav1,nav2,nav3,nav4, nil];
UITabBarController *tabbarController = [[UITabBarController alloc] init];
tabbarController.view.frame = CGRectMake(0,0,320,460);
[tabbarController setViewControllers:viewsArray];
self.window.rootViewController = tabbarController;
And with this the UINavigationBar appears on every page. I want it to appear after few pages, like once the user has logged inn, the navigation bar will appear. That does not happen with my current code. How can I fix this?

Use the bar’s hidden property of navigationbar wherever you want it to be hidden
controllerObject.navigationController.navigationBar.hidden = YES;And in your case add
after the line