title: Access modal view controller parent
body: <p>I'm presenting a ViewController modally.
  How can I access the parent view controller ?</p>
  
  <p>My architecture is TabBarController=>VC1=>VC2=>VC3=>MVC1, and I want to reach VC3 from MVC1.</p>
  
  <p>In VC3, I have this code : </p>
  
  <pre><code>- (void) editAd{
      AskPasswordViewController *modalViewController = [[AskPasswordViewController alloc] initWithNibName:@"AskPasswordView" bundle:nil];
  
      NSLog(@"modalparent class=%@", [[modalViewController parentViewController] class]);
  
      [self presentModalViewController:modalViewController animated:YES];
      [modalViewController release];
  }
  </code></pre>
  
  <p>I tried this in MVC1:</p>
  
  <pre><code>- (void) sendRequest {
      NSLog(@"classe : %@",[[self parentViewController] class] );
  }
  </code></pre>
  
  <p>but it returns my TabBarViewController...</p>