Images for Retina display

烂漫一生 提交于 2019-12-25 04:58:16

问题


If i want my application to be compatible with the Retina display, am i obliged to recreate all my images by doubling their sizes? even the icon?


回答1:


You're not obligated, it just will look very pixelated if you don't.

As for the icon, I believe you are obligated to provide multiple sizes when submitting to the AppStore.




回答2:


if you will not use high resolution images your images will look pixelated/blurr.So better to use high res images as well.Some Key points are:

  • Displaying graphics depending on the device model can be done by duplicating image files and adding an ‘@2x’ suffix. So, when the normal image file is named ‘button.png’, the hi-res version should be ‘button@2x.png’.
  • You don’t need any additional code for this. In Interface Builder or your code, assign the normal version (without the suffix) to an object. The same goes for the application icon. The resolution of the 2x icon should be 114 by 114 pixels. You will need to add a separate ‘Icon’ property in the Info.plist file for this icon.
  • If for some reason you do want to perform a check in your code, you can do so by checking the scale factor of the display. Older models will return a scale factor of 1.0, while the iPhone 4 will return 2.0. You can check this with:

float factor = [UIScreen mainScreen].scale;

Depending on the type of application you’re developing further optimizations can be made to utilize the new retina display the best you can.

A very good information here

hope it help you :)




回答3:


Maybe you'll want to take a look at iRetiner.

You could also check this previous stackoverflow thread : how to set image for ipad application that support retina display




回答4:


A summary of the icons and what is required can be found in the human interface guidelines. I highly recommend providing high resolution artwork for the retina display even though it is not required. Your default now should be to design artwork at the higher resolution, then scale down for older devices. I doubt Apple would choose to highlight an application as new and noteworthy if it looks pixelated on the latest devices.



来源:https://stackoverflow.com/questions/10246147/images-for-retina-display

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