是否可以阻止iPhone在我的应用程序图标中添加“闪耀”?

时间:2021-11-24 20:28:23

When you define an icon for your app in XCode and then run it in the simulator or on a real device, the icon is automatically trimmed so it has rounded edges and a 'glossy' sheen is applied over top of the icon. I'd like to get rid of that sheen since it's obscuring some of the detail in my icon. It seems like some other apps are able to accomplish this... anyone know how it's done?

当您在XCode中为您的应用定义图标,然后在模拟器或真实设备上运行它时,图标会自动修剪,因此它具有圆形边缘,并且在图标顶部应用了“光泽”光泽。我想摆脱那种光泽,因为它模糊了我的图标中的一些细节。似乎其他一些应用程序能够实现这一点......任何人都知道它是如何完成的?

2 个解决方案

#1


Add this key/value pair to your Info.plist file:

将此键/值对添加到Info.plist文件中:

<key>UIPrerenderedIcon</key>
<true/>

#2


In Xcode 4.3 it's even easier...just go to your Target settings -> summary and next to your app icons check "Prerendered" - it removes that sheen

在Xcode 4.3中,它更容易......只需转到目标设置 - >摘要,然后在应用程序图标旁边选中“Prerendered” - 它会消除光泽

#1


Add this key/value pair to your Info.plist file:

将此键/值对添加到Info.plist文件中:

<key>UIPrerenderedIcon</key>
<true/>

#2


In Xcode 4.3 it's even easier...just go to your Target settings -> summary and next to your app icons check "Prerendered" - it removes that sheen

在Xcode 4.3中,它更容易......只需转到目标设置 - >摘要,然后在应用程序图标旁边选中“Prerendered” - 它会消除光泽