Hi all,
I've been successful with using and understanding the use of pushViewController, however, I cannot seem to get it working when I have a TabBar and a NavigationBar on the same view. What I'm trying to do is when a user selects an item in the UITableView (which contains both TabBar and NavigationBar) I want it to go into a details view which would contain a Back button. But when I call on pushViewController with the view nothing happens (the object is loaded but visually nothing is there).
Example:
// the table's selection has changed, switch to that item's UIViewController
Thanks for your help!
Cheers,
Aidan
I've been successful with using and understanding the use of pushViewController, however, I cannot seem to get it working when I have a TabBar and a NavigationBar on the same view. What I'm trying to do is when a user selects an item in the UITableView (which contains both TabBar and NavigationBar) I want it to go into a details view which would contain a Back button. But when I call on pushViewController with the view nothing happens (the object is loaded but visually nothing is there).
Example:
// the table's selection has changed, switch to that item's UIViewController
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
DealsDetailViewController *controller = [[DealsDetailViewController alloc] initWithNibName:@"DealsDetailView" bundle:[NSBundle mainBundle]];
[self.tabBarController.navigationController pushViewController:controller animated:YES];
[controller release];
}
Cheers,
Aidan