title: compile error get navigationController from app delegate
body: <p>In my AppDelegate didFinishLaunchingWithOptions, i initialized the UINavigationController</p>
  
  <pre><code>TodoTaskTableViewController *tttvc = [[TodoTaskTableViewController alloc] initInManagedObjectContext:self.managedObjectContext];
  UINavigationController *navcon = [[UINavigationController alloc] init];
  
  [navcon pushViewController:tttvc animated:NO];
  
  [window addSubview:navcon.view];
  
  [navcon release];
  
  [window makeKeyAndVisible];
  </code></pre>
  
  <p>Then at my TodoTaskTableViewController i click on a button which push another modal view, and found that navigation bar of the modal view gets hidden below the AppDelegate's navigation bar.</p>
  
  <p>So i try to hide the AppDelegate's navigation bar by setting it like:</p>
  
  <pre><code>AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
  
  [appDelegate.navigationController setNavigationBarHidden:YES animated:YES];
  </code></pre>
  
  <p>but i actually get a compile error : Request for member "navigationController" in something not a structure or union"</p>
  
  <p>Any idea how to fix this?</p>