I have tried using the obvious method as outlined in the following example but my passed variable (rootcategory) is still nil on viewDidLoad in the loaded view
http://www.iphonesdkarticles.com/2008/08/table-view-tutorial-part-3.html
This is my code:
CategoryViewController *viewController = [[CategoryViewController alloc] initWithNibName:@"CategoryViewController" bundle:[NSBundle mainBundle]];
self.categoryViewController.rootCategory = @"433";
self.categoryViewController = viewController;
[viewController release];
I am synthesizing a property in the header as follows:
@property (nonatomic, readwrite) NSString *rootCategory;