简体   繁体   English

iOS标签栏项自定义图像

[英]iOS Tab Bar Item Custom Images

I have been attempting to create a tabbed application with tab bar items that are custom images, but no matter what I do there is always a tint over it. 我一直在尝试创建带有选项卡栏项的选项卡式应用程序,这些选项卡栏项是自定义图像,但是无论我做什么,总会在它上面留下些许色彩。

Is there any way to use the image and preserve all the original colors without it automatically covering it with a tint? 有什么方法可以使用图像并保留所有原始颜色,而无需用色调自动覆盖图像?

Thank you, any help is appreciated! 谢谢您的帮助!

这是解决方案

[[UIView appearance] setTintColor:[UIColor clearColor]];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM