Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationBar是如何隐藏的,能否显示出来 #32

Closed
jumpingfrog0 opened this issue Nov 14, 2016 · 1 comment
Closed

NavigationBar是如何隐藏的,能否显示出来 #32

jumpingfrog0 opened this issue Nov 14, 2016 · 1 comment

Comments

@jumpingfrog0
Copy link

我仔细研究了你的代码,没看到你把NavigationBar隐藏的代码,你是怎么实现的?怎么显示出来?

@BrikerMan
Copy link
Owner

有两种办法,第二种可以设置动画。
隐藏

UIApplication.shared.isStatusBarHidden = true
UIApplication.shared.setStatusBarHidden(true, with: .fade)

显示

UIApplication.shared.isStatusBarHidden = false
UIApplication.shared.setStatusBarHidden(false, with: .fade)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants