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

UITabBarController嵌套UINavigationController后,关于tabBar的问题以及解决方法 | 东隅已逝/桑榆非晚 #33

Open
h1z3y3 opened this issue Apr 23, 2021 · 0 comments

Comments

@h1z3y3
Copy link
Owner

h1z3y3 commented Apr 23, 2021

https://h1z3y3.me/posts/how-to-use-sethidebottombarwhenpushed/

一开始自己将tabBar全部自定义,将系统tabbar设置为self.tabBar.hidden=YES,隐藏系统的tabbar。但是自定义的tabbar在push出新页面的时候,tabbar并不会自动隐藏。之后在新页面viewWillAppear中设置自动隐藏,但是pop回之前页面(在viewDidAppear中设置tabbar显示)又出现不能及时出现,会有时间延迟,看上去特别不舒服。而且,边缘返回旧页面的时候不能及时显示tabbar也,所以打算用系统默认的tabbar。记录下系统tabBar样式的简单定义。
……

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

No branches or pull requests

1 participant