iOS导航栏隐藏绝技啊
2017-04-24 本文已影响51人
我是不是叫没烦恼
妈妈再也不用担心我隐藏导航纠结了. 就是这么轻松, 就是这么随意.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:animated];
}
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[self.navigationController setNavigationBarHidden:NO animated:animated];
}