Hi,
I have a view which is a part of a tabBarController. In this view I have a subview with a table. When clicking a cell in this table, I would like to access the navigationController of the parent view. Is this possible - and if so, how?
I thought it would be
But that does not work.
When printing self.navigationController using NSLog in the parent view, I get a valid value but when doing so in the subview, it returns null. Is there anyway to "send" the navigationController to the subview?
I have a view which is a part of a tabBarController. In this view I have a subview with a table. When clicking a cell in this table, I would like to access the navigationController of the parent view. Is this possible - and if so, how?
I thought it would be
Code:
BandDetailViewController *bandDetailViewController = [[BandDetailViewController alloc] initWithNibName:@"BandDetailViewController" bundle:nil];
bandDetailViewController.band = [thisDay objectAtIndex:indexPath.row];
[super.navigationController pushViewController:bandDetailViewController animated:YES];
[bandDetailViewController release];
But that does not work.
When printing self.navigationController using NSLog in the parent view, I get a valid value but when doing so in the subview, it returns null. Is there anyway to "send" the navigationController to the subview?