push隐藏UINavigtaionBar和UITabbar

[self.navigationController setNavigationBarHidden:YES];
self.navigationController.hidesBottomBarWhenPushed = YES; //这句是隐藏tabbar

返回时
先[self.navigationController setNavigationBarHidden:NO];

或在前一页面的viewWillAppear中加入
[self.navigationController setNavigationBarHidden:NO];

你可能感兴趣的:(push)