1.我做团购demo底下有个tabbar
2.当我点击某一行团购时,弹出详情页面。需求是在详情页面,把底下的tabbar隐藏
3.隐藏的代码是
self.hidesBottomBarWhenPushed = YES
问题:不知道在什么时机加入这个代码。从详情页面点击导航栏返回时,需要显示tabbar
注:用present推出可以自动的隐藏tabbar , 这里想知道用push怎么做。
迷茫2017-05-02 09:25:35
Do it when you call pushViewController. As follows:
- (void)goToDetailPage {
UIViewController *detailViewController = [[UIViewController alloc] init];
detailViewController.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:detailViewController animated:YES];
}