自定义二级页面返回按钮 系统自带侧滑返回就会失效 如果允许侧滑返回 需加如下代码
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
}
二级隐藏tabbar需加这句代码
[二级控制器 setHidesBottomBarWhenPushed:YES];
示例:
MessageDetailController *message = [[MessageDetailController alloc] init];
[message setHidesBottomBarWhenPushed:YES];
[self.navigationController pushViewController:message animated:YES];