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

改变tabBar或者navigationBar的tintColor无法改变图片的颜色 #21

Closed
ylxieg opened this issue Aug 20, 2019 · 5 comments
Closed

Comments

@ylxieg
Copy link

ylxieg commented Aug 20, 2019

图片渲染用UIImageRenderingModeAlwaysTemplate模式,可是无法根据navigationBar.lee_theme
.LeeAddBarTintColor或者tabBar.lee_theme
.LeeAddBarTintColor的颜色而改变是为什么呀

@lixiang1994
Copy link
Owner

lixiang1994 commented Aug 20, 2019 via email

@ylxieg
Copy link
Author

ylxieg commented Aug 20, 2019

给你这个18611401994@163.com邮箱发邮件啦大神

@lixiang1994
Copy link
Owner

    self.tabBar.lee_theme
    .LeeAddTintColor(DAY , LEEColorRGB(255, 255, 255))
    .LeeAddTintColor(NIGHT , LEEColorRGB(40, 40, 40))

使用TintColor而不是BarTintColor

@lixiang1994
Copy link
Owner

TintColor 可以修改图片颜色, 如果是背景颜色修改则用BarTintColor (iOS7以上)

@ylxieg
Copy link
Author

ylxieg commented Aug 22, 2019

嗯。可以了。谢谢

@ylxieg ylxieg closed this as completed Aug 22, 2019
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