Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UItabaritem从图像中删除光泽_Ios_Objective C_Uitabbar_Uitabbaritem - Fatal编程技术网

Ios UItabaritem从图像中删除光泽

Ios UItabaritem从图像中删除光泽,ios,objective-c,uitabbar,uitabbaritem,Ios,Objective C,Uitabbar,Uitabbaritem,您可以看到带有阴影和类似预渲染图标的房屋图片。如何删除此效果?您需要在UITabBarItem上同时设置已完成和未完成的图像,否则框架将自动为其添加光泽。这是你可以做到的 [barItem setFinishedSelectedImage:[UIImage imageNamed:@"myimage.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"myimage.png"]]; 请注意,完成的图像和未完成的图像是相同的。您需要在UI


您可以看到带有阴影和类似预渲染图标的房屋图片。如何删除此效果?

您需要在UITabBarItem上同时设置已完成和未完成的图像,否则框架将自动为其添加光泽。这是你可以做到的

[barItem setFinishedSelectedImage:[UIImage imageNamed:@"myimage.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"myimage.png"]];

请注意,完成的图像和未完成的图像是相同的。

您需要在UITabBarItem上同时设置完成的图像和未完成的图像,否则框架将自动在其上添加光泽。这是你可以做到的

[barItem setFinishedSelectedImage:[UIImage imageNamed:@"myimage.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"myimage.png"]];

请注意,完成的图像和未完成的图像是相同的。

您需要更改没有光泽效果的UITabBarItem的图像:)是的,iPatel是正确的……我的图像没有光泽glossy@MaximusAlarmus... 您需要更改没有光泽效果的UITabBarItem的图像:)是的iPatel是正确的…我的图像没有光泽glossy@MaximusAlarmus...