iOS-> setNavigationBar隐藏延迟
当我在另一个视图中使用
[[self navigationController] setNavigationBarHidden:YES animated:NO];
和
[[self navigationController] setNavigationBarHidden:NO animated:NO];
时,我可以清楚地看到导航栏在这些视图之间“消失”和“出现”时的延迟。有什么办法可以忽略这一点并强制导航栏在切换视图后立即出现/消失吗?
例如。 从 A 类到 B 类 - 我首先可以看到视图,然后导航栏在 +/- 1 秒后出现。 从 B 类到 A 类 - 我可以看到带有导航栏的视图,大约 1 秒后导航栏消失。
When i use
[[self navigationController] setNavigationBarHidden:YES animated:NO];
and in another view
[[self navigationController] setNavigationBarHidden:NO animated:NO];
I can clearly see a delay when navigation bar is 'disappearing' and 'appearing' between these views. Is there any way to omit this and force navigation bar to appear/disappear immediately after switching views?
Eg.
From class A to B- I can firstly see view, then navigation bar is appearing after +/- 1s.
From class B to A- I can see view with navigation bar and after about 1s bar is disappearing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在新视图完成到屏幕上的转换后设置导航栏。
You could setup the navigation bar after the new view has completed its transition onto the screen.