title: iOS toolbar not showing navigation controller
body: <p>I am having trouble getting the toolbar of my navigation controller to show. When I do</p>
  
  <pre><code>self.navigationController.toolbarHidden = NO;
  </code></pre>
  
  <p>within the init method of mainController the toolbar does not show. However, when I use that line in the commented part below, it works fine. I realize it isn't working because I create mainController before I create the navigation controller. Is there a way to fix this so that I can call that line in the init method of mainController?</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application
      didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  
    rootController = [[mainController alloc] init];
    UINavigationController *navController =
        [[UINavigationController alloc] initWithRootViewController:rootController];
    //turn on toolbar
  
    _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    _window.rootViewController = navController;
    [_window makeKeyAndVisible];
  
    return YES;
  }
  </code></pre>