Cannot get UINavigationController to work UITableView
I have the following in my ViewController:
- (void)viewDidLoad
{
[super viewDidLoad];
//UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self];
UINavigationController *navController = [[UINavigationController alloc] init];
[self.view addSubview:navController.view];
navController.title = @"STANDS";
navController.navigationBar.tintColor =[UIColor darkGrayColor];
navController.navigationBar.translucent = YES;
[navController setNavigationBarHidden:NO animated:YES];
StandArray = [[NSArray alloc] initWithObjects:@"View Stands",@"Add Stand",nil];
}
Everything appears ok at runtime with the exception that my didSelectRowAtIndexPath method for the UITable view will not fire. If I comment out the code in regards to the UINavigationController the UITableView works fine but I have no navController.
Any ideas?
|