美文网首页
两个没有导航栏的viewController切换时出现的异常解决

两个没有导航栏的viewController切换时出现的异常解决

作者: 我还没想好呢 | 来源:发表于2017-05-19 10:32 被阅读0次

    2个没有导航栏的视图控制器,页面切换时出现的问题及解决:

    1、A页面切到B页面时,A出现导航栏:

    是因为A的导航栏隐藏设置没写对,应该为:

    - (void)viewWillAppear:(BOOL)animated{

      [superviewWillAppear:animated];

      self.navigationController.navigationBarHidden=NO;

      self.navigationController.navigationBar.hidden=YES;

    }

    相关文章

      网友评论

          本文标题:两个没有导航栏的viewController切换时出现的异常解决

          本文链接:https://www.haomeiwen.com/subject/swxyxxtx.html