在视网膜显示的选项酒吧象 [英] Tab bar icons on retina display

查看:110
本文介绍了在视网膜显示的选项酒吧象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作iPhone应用程序,但我无法理解为什么我的自定义标签栏图标会像素化。它们是30x30。例如,如果我将分辨率更改为60x60,则图标仍然是像素化的,但它们也是不完整的。

I am making an iPhone App but I can't understand why my custom tab bar icons are pixelated. They are 30x30. If I change the resolution to 60x60, for example, the icons are still pixelated but they are also incomplete.

你能帮我解决这个问题吗?非常感谢。

Can you help me to fix this problem? Thank you very much.

推荐答案

您不需要将非视网膜图像的大小加倍。

您需要创建两个单独的图标 icon.png (30x30)和 icon@2x.png (60x60 )。$
iOS将根据屏幕比例自动加载正确的文件。

您可以在此网址找到有关利用视网膜显示的更多信息: https://developer.apple.com/resources/high-resolution/

You don't need to double the size of your non-retina images.
You need to create two separate icons icon.png (30x30) and icon@2x.png (60x60).
iOS will automatically load the right file based on the screen scale.
You can find more information about taking advantage of the retina display at this url: https://developer.apple.com/resources/high-resolution/

这篇关于在视网膜显示的选项酒吧象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆