- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIViewController *vc = [[UIViewController alloc] init];
vc.view.backgroundColor = [UIColor blueColor];
//Push的时候隐藏底部
vc.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:vc animated:YES];
}
tableView点击push跳转的时候,隐藏底部的tabbar栏
最新推荐文章于 2024-08-16 17:08:20 发布
本文介绍如何在iOS应用中使用UITableView实现页面切换,并在切换时隐藏底部导航栏,提升用户体验。
1万+

被折叠的 条评论
为什么被折叠?



