Retina/non-retina images in UIImageView

坚强是说给别人听的谎言 提交于 2019-12-05 01:28:13

For our apps we use a combination of the @2x images and doing what you've suggested, Scaling. We use the @2x images for bar buttons, icons, etc. But for UIImageViews we often just use the Scaling.

Here is an article that suggests both: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/

Ignore the part about the iPad not supporting @2x (that is old information) but the article is still good.

There can be a performance hit for doing this, but for most apps I'd say this is negligible. The savings in file size sometimes make scaling the only option.

Simone D'Amico

Scaling the images is an unnecessary overhead. Just provide two versions of it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!