【发布时间】:2012-06-07 03:39:21
【问题描述】:
I have changed the tabBar.selectedImageTintColor to my own purlple color however when the tabbar item is selected there is a bright blue line that surrounds the outside of the image which is now purple..
这看起来很糟糕,所以现在我正在尝试找到一种方法来删除它或将其更改为更好的匹配颜色。
但是我不知道该怎么做,希望有人能告诉我。
这是我说的蓝线
这就是我将图像选择颜色更改为紫色的方式...
myTabBar.selectedImageTintColor = [UIColor colorWithRed:49.0/255.0 green:0.0/255.0 blue:98.0/255.0 alpha:0.95];
另一个带有放大标签图标的蓝色轮廓示例
【问题讨论】:
-
您可以为标签栏项目使用自定义图像。
-
是的,我使用的是自定义图像,但它仍然添加了那个有趣的蓝色轮廓。我会做一个屏幕截图。
-
你能贴一些你用过的代码吗?
-
如何设置标签栏的自定义图像?我已经将上面的代码用于标签栏默认按钮并且工作正常。
-
self.button1.image = [UIImage imageNamed:@"icon1.png"];
标签: iphone ios uitabbar uitabbaritem