制作应用程序Retina显示友好 [英] Making an app Retina Display friendly

查看:133
本文介绍了制作应用程序Retina显示友好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,并希望使视网膜显示友好。

I have an app and would like to make it retina display friendly.

该过程究竟是如何工作的?除了我有什么图像需要添加?

How exactly does the process work? What images need to be added apart from what I have?

我知道尺寸应该不同,但我不确定细节?

I know the sizes should be different, but am not sure on the details?

处理视网膜显示需要做些什么?

What else needs to be done to handle retina display?

如果设备支持视网膜显示,是否应该检测到设备并使用其他图像?

Should the device be detected and use other images if the device supports retina display?

如果有很多图片怎么办?这将如何影响应用程序的大小?

What if there are a lot of images? And how will this effect the app size?

谢谢

推荐答案

可以在此处找到一个很好的指南: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/

A good guide to this can be found here: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/

一般来说你只需创建2组图像。你原来的,然后一个新的两倍大的名字@ 2x。因此,对于大小为32x32的image.png,你会得到一个大小为64x64的分辨率为image@2x.png的两倍。在你的应用程序中,只需在Interface Builder中使用image.png并在代码中加载。

In general you just create 2 sets of images. Your original and then a new one twice as big with @2x in the name. So for image.png at size 32x32 you would have one that is twice the resolution called image@2x.png at size 64x64. In your app just always use the image.png in Interface Builder and when loading in code.

无需检测设备。这些图像将由操作系统自动拾取并根据需要加入。

There is no need to detect the device. These images will automatically be picked up by the OS and subbed in as necessary.

这篇关于制作应用程序Retina显示友好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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