After Programatically adding a UINavigationController to one of my views, I cannot seem to set the title of it. Here is the code I'm using:
Code:
tableViewController = [[MyTableViewController alloc] initWithStyle:UITableViewStylePlain];
navigationController = [[UINavigationController alloc] initWithRootViewController:tableViewController];
navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
navigationController.navigationItem.title = @"Title";
navigationController.view.frame = CGRectMake(0.0, 0.0, 320.0, 460.0);
[self.view addSubview:navigationController.view];
Can anybody see something I'm doing wrong??