- (BOOL)hidesBottomBarWhenPushed
这个函数如果返回值是YES 那么从当前页面view1 push到view 2,view3.....都会隐藏掉toolbar
如果只想隐藏掉某一个view2页面的toolbar 通过设置这个属性可以解决
/**
* 隐藏toolBar
*/
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:ntovc animated:YES];
self.hidesBottomBarWhenPushed = NO;
注意 在这个页面被push之前需要设置hide为YES,这样从view1 -> view2 之后view2是不显示toolBar的 但是在这个push后面还要再把这个hide设置为NO 以防止对比如view1 -> view3其他页面的跳转产生影响