简体   繁体   English

锯切和隐藏导航栏的奇怪问题

[英]Strange Issue for Sawing and hiding the Navigation bar

I have an application which presents few screens using navigation controller, On my First screen i have hide the navigation bar , When i Push On the Second screen I set my Navigation bar visable and When i pop from the Second screen to first screen i saw the one black stripe on the first screen, Can you please give me the Solution of this problem. 我有一个使用导航控制器显示几个屏幕的应用程序,在第一个屏幕上,我隐藏了导航栏,当我在第二个屏幕上按时,将导航栏设置为可见,当我从第二个屏幕弹出到第一个屏幕时,我看到了第一个屏幕上出现一个黑色条纹,能否请您给我解决此问题的方法。

Thanks. 谢谢。

请在ViewWillAppear而不是ViewDidLoad隐藏导航栏,因为从第二个视图ViewDidLoad ,将首先调用viewWillAppear

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM