Iphone 从uitabbaritem图像中删除蓝色轮廓

Iphone 从uitabbaritem图像中删除蓝色轮廓,iphone,ios,uitabbar,uitabbaritem,Iphone,Ios,Uitabbar,Uitabbaritem,我已将tabBar.selectedImageTintColor更改为我自己的purlple颜色。但是,当选择tabBar项目时,图像外部会出现一条亮蓝色线条,该线条现在为紫色 这看起来相当糟糕,所以现在我试图找到一种方法,要么删除它,要么将其更改为更好的匹配颜色 但是我不知道怎么做,我希望有人能告诉我 这就是我说的蓝线 这就是我如何将图像选择颜色更改为紫色 myTabBar.selectedImageTintColor = [UIColor colorWithRed:49.0/255.0

我已将tabBar.selectedImageTintColor更改为我自己的purlple颜色。但是,当选择tabBar项目时,图像外部会出现一条亮蓝色线条,该线条现在为紫色

这看起来相当糟糕,所以现在我试图找到一种方法,要么删除它,要么将其更改为更好的匹配颜色

但是我不知道怎么做,我希望有人能告诉我

这就是我说的蓝线

这就是我如何将图像选择颜色更改为紫色

 myTabBar.selectedImageTintColor = [UIColor colorWithRed:49.0/255.0 green:0.0/255.0 blue:98.0/255.0 alpha:0.95];
另一个蓝色轮廓的例子是tabbaricon放大


在iOS 5中,您可以设置外观方法

完全按照您希望的方式创建未选中和选定的图像,然后使用FinishedSelectedImage:
设置FinishedSelectedImage:
iOS将不对通过此方法提供的图像应用任何格式

UIImage *selectedImage = [UIImage imageWithName:@"my_finished_selected_image"];
UIImage *unselectedImage = [UIImage imageWithName:@"my_finished_unselected_image"];
[tabBarItem setFinishedSelectedImage:selectedImage withFinishedUnselectedImage:unselectedImage];

您可以为选项卡栏项目使用自定义图像。是的,我正在使用自定义图像,但它仍然添加了有趣的蓝色轮廓。。我会做一个屏幕截图。你可以发布一些你用过的代码吗?你将如何设置标签栏的自定义图像?我已将上述代码用于选项卡栏默认按钮,效果良好。self.button1.image=[UIImage ImageName:@“icon1.png”];此方法有效,但现在已被弃用。你知道iOS 7的类似版本吗?