title: How do you pass data between views using a UINavigationController
body: <p>I have tried using the obvious method as outlined in the following example but my passed variable (<em>rootcategory</em>) is still <strong>nil</strong> on viewDidLoad in the loaded view.</p>
  
  <p>This is my code:</p>
  
  <pre><code>CategoryViewController *viewController = [[CategoryViewController alloc] initWithNibName:@"CategoryViewController" bundle:[NSBundle mainBundle]];
  self.categoryViewController.rootCategory = @"433";
  self.categoryViewController = viewController;
  [viewController release];
  </code></pre>
  
  <p>I am synthesizing a property in the header as follows:</p>
  
  <pre><code>@property (nonatomic, readwrite) NSString *rootCategory;
  </code></pre>