-
Notifications
You must be signed in to change notification settings - Fork 456
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.isTranslucent = true,页面背景色不同时跳转,会有闪烁 #163
Comments
同问,楼主解决了吗 |
@yuanyedehuhuan @GKWenBo 2位大佬解决了吗 |
设置导航透明度为不透明就可以了 |
这样的话导航栏半透明效果就没了,挺纠结的,没有更好的解决方法吗 |
测试前提条件:
1、navigationBar.isTranslucent = true
2、导航栏背景色设置为 navigationController?.navigationBar.barTintColor = .white 或者 navigationController?.navigationBar.setBackgroundImage(UIColor.white.toUIImage(), for: .default)。其他颜色也可以如 UIColor.cyan
3、页面背景色设置为和导航栏不同的颜色,如绿色
现象是,push过程中导航栏颜色是 isTranslucent = false 的状态,push完成时瞬间变成透明的
The text was updated successfully, but these errors were encountered: