objective-c - tabbar toolbar hidden
高洛峰
高洛峰 2017-05-02 09:23:35
0
1
458

1. There is a tabbar at the bottom of my group purchase demo

2. When I click on a group purchase row, the details page pops up. The requirement is to hide the tabbar underneath on the details page
3. The hidden code is
self.hidesBottomBarWhenPushed = YES

Problem: I don’t know when to add this code. When you click the navigation bar to return from the details page, the tabbar

needs to be displayed.

Note: Using present to push can automatically hide the tabbar. Here I want to know how to use push to do it.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
迷茫

Do it when you call pushViewController. As follows:

- (void)goToDetailPage {
    UIViewController *detailViewController = [[UIViewController alloc] init];
    detailViewController.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:detailViewController animated:YES];
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template