title: UINavigationcontroller initWithRootViewController from appDelegate, empty view?
body: <p>I ran into a problem.</p>
  
  <p>I want to initialize an UINavigationcontroller with an UIViewController. As my Viewcontroller gets loaded from a .xib I am using</p>
  
  <pre><code>UINavigationController *myNavigationController = [[UINavigationController alloc] initWithRootViewController:appDelegate.myViewController];
  </code></pre>
  
  <p>[self presentModalViewController:myNavigationController animated:YES];</p>
  
  <p>Unfortunately my view is empty.</p>
  
  <p>Am I doing something wrong or is there an other way achieving my aim?</p>
  
  <p>If I am allocating an instance of my Viewcontroller like so</p>
  
  <pre><code>UIViewController *aController = [[UIViewController alloc] initWithNibName:@"myViewController" bundle:[NSBundle mainBundle]];
  </code></pre>
  
  <p>And having a button inside the nib, my app crashes when tapping on it.</p>
  
  <p>Thanks a lot.</p>