How to hide parent tabbar when pushing controller in navigationController
Posted
by Yannis
on Stack Overflow
See other posts from Stack Overflow
or by Yannis
Published on 2010-06-01T06:29:38Z
Indexed on
2010/06/01
6:33 UTC
Read the original article
Hit count: 316
Hi all,
I have an application with a tab bar controller and each view contains a navigation controller. My MainWindow looks as follows:
Everything works fine as it is but I noticed a problem when pushing a details view to the navigation controller. In the didSelectRowAtIndexPath for a tableviewcontroller that belongs to the tab bar controller (the one called Latest in the image) I am doing this:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ArticleViewController *articleController = [[ArticleViewController alloc] initWithNibName:@"ArticleView" bundle:nil];
[self.navigationController pushViewController:articleController animated:YES];
[articleController release];
articleController = nil;
}
The ArticleViewController has its own tabbar because it needs to display different things. The problem is that when I push the ArticleViewController into the navigationController I see both tabbars at the bottom of the view. Is there any way I can solve this problem?
Thanks in advance
© Stack Overflow or respective owner