title: viewWillAppear not called
body: <p>This is the code that executes when a button is tapped in the view for the viewcontroller that displays the modal dialog:</p>
  
  <pre><code>-(IBAction)presentModally:(id)sender {  
  
  if (self.nvc == nil) {
  MyModalViewController *vc = [[MyModalViewController alloc] init];
  UINavigationController *navvc = [[UINavigationController alloc] initWithRootViewController:vc];
  navvc.navigationItem.prompt = @"";
  navvc.navigationBar.barStyle = UIBarStyleBlack;
  [vc release];
  self.nvc = navvc;
  [navvc release];
  }
  }
  </code></pre>
  
  <p>[self presentModalViewController:self.nvc animated:YES];</p>
  
  <p>This code should if everything was correct launch every time the view appear.</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  
  NSLog(@"test");
  }
  </code></pre>
  
  <p>When I comment the if-statement that checks if the Ivar is nil the method viewWillAppear is invoked. Any ideas?</p>