title: Is parentViewController always a Navigation controller?
body: <p>I was kind of scratching my head at this a week ago, and now with a little bit more Cocoa experience under my belt I feel like I have an inkling as to what might be going on. </p>
  
  <p>I'm making an application that is driven by a UINavigationController. In the AppDelegate, I create an instance of this class, using "page 1" as the Root View Controller.</p>
  
  <pre><code>UINavigationController *aNavigationController = [[UINavigationController alloc] 
       initWithRootViewController:page1ViewController];
  </code></pre>
  
  <p>Now here's where I'm having the problem. From "page 1" I'd like to use a modal view controller that slides over the interface and then disappears once the user has made an edit. I do that using code like this, inside of Page1ViewController:</p>
  
  <pre><code>[self presentModalViewController:myModalViewController animated:YES];
  </code></pre>
  
  <p>When the Modal View Controller is gone, I want a value on "Page 1" to change based on what the user entered in the Modal View Controller. So, I wrote some code like this, which resides in the Modal View Controller: </p>
  
  <pre><code>[self.parentViewController dismissModalViewControllerAnimated:YES];
  [self.parentViewController doSomethingPleaseWithSomeData:someData];
  </code></pre>
  
  <p>The update to page 1 wasn't happening, and it took me a long time to realize that the "doSomethingPleaseWithSomeData" message was not being sent to Page1ViewController, but the Navigation Controller. </p>
  
  <p>Is this always to be expected when using Navigation Controllers? Did I perhaps configure something improperly? Is there an easy way to get at the View Controller that I want (in this case, Page1ViewController).</p>