iOS技术集合

导航栏隐藏,下一级返回显示异常的问题

2019-01-07  本文已影响16人  swift_honor

代码如下:

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:YES];
}
- (void)viewWillDisappear:(BOOL)animated {
    self.navigationController.navigationBar.hidden = NO;
    [super viewWillDisappear:animated];
}
上一篇 下一篇

猜你喜欢

热点阅读