I need something like this

But I have found nothing similar to this one for iphone with retina display

有帮助吗?

解决方案

If you're designing your own interface elements and need image dimensions, yes; you just double the values. However, in your code, when referring to the coordinate system of elements (points), you still use then 320x480 point system, as the points are automatically scaled for different device resolutions.

For images, the retina sized images must have the same file name, but with @2x following. For instance, background.png (320x480) must have a similar image background@2x.png with dimensions 640x960.

其他提示

Notice how the measurements are in points (not pixels). This is the correct sizing for both retina and normal iPhone displays.

1 point == 1 pixel on non-retina displays and 1 point == 2 pixels on retina displays.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top