title: How to show UINavigationController on view
body: <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
  
      // Override point for customization after application launch.
  
      // Add the view controller's view to the window and display.
  
      [window addSubview:viewController.view];
      MainPageDialog *overviewViewController = [[MainPageDialog alloc] initWithNibName:@"MainPage" bundle:nil];
      UINavigationController *nav_obj = [[UINavigationController alloc] initWithRootViewController:overviewViewController ];
  
      [self.viewController presentModalViewController:nav_obj  animated:YES];
      [overviewViewController release];
      [self.window makeKeyAndVisible];
  
      return YES;
  }
  </code></pre>
  
  <p>This code shows the blue bar of navigation controller, but no buttons on it.It seems like to be that the  UINavigationController allocated as empty.
  Who knows what problems is?</p>
  
  <p>UPD:Archive <a href="http://www.mediafire.com/?lbjjvl6fcue2q18" rel="nofollow">http://www.mediafire.com/?lbjjvl6fcue2q18</a>
  Please help me, I'm new in objective-c</p>