【发布时间】:2020-09-04 17:47:52
【问题描述】:
当它被选中时,我想在我的 UITabBar 中用另一种颜色替换它。目的是获得一张我可以通过编程方式更改颜色的图像。
我该怎么做?
let tabBarItem = UITabBarItem(title: menuName, image: unselectedImage, selectedImage: selectedImage)
【问题讨论】:
-
您是否尝试过在 .xcaccess 中或以编程方式将渲染模式设置为 Template 并将 tint 颜色更改为渲染图像的 imageView 或更改 tabor tintColor
标签: ios swift uitabbar uigraphicscontext