不同的图标?
可能是一个很容易解决的问题,但我似乎找不到解决方案。
我知道您需要针对不同设备使用不同的图标大小,如此处所述( http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html )
但是我的应用程序如何知道使用哪一个呢?我在 plist 中看到另一个关键选项,称为“图标文件”。我想我需要使用它而不是普通的“图标文件”?
有大佬给个解释吗?
May be a easily solvable problem but I cant seem to find a solution.
I understand that you need different icon sizes for different devices as explained here ( http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html )
But how will my app know which one to use? I see in the plist there is another key option called ‘Icon Files’. I presume I need to use this instead of the normal ‘Icon File'?
Anyone have a dummies explanation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的应用程序不需要知道要使用哪个图标。 iOS 本身会从 Info.plist 中列出的图标文件条目中找出要获取的图标。只需使用命名约定 (
[email protected]
对于视网膜,Icon~ipad.png
对于 iPad 和简单的 Icon.png 对于其他一切),你会乖一点。请注意,我并不是说您应该完全使用这些文件名。命名图标文件时只需使用适当的后缀。
Your app does not need to know which icon to use. iOS itself will figure out which icon to take from your listed icon files entry in Info.plist. Just use the naming convention (
[email protected]
for retina,Icon~ipad.png
for iPad and simple Icon.png for everything else) and you'll be good.Note that I'm not saying that you should use exactly these file names. Just use appropriate suffixes when naming icon files.