Frage

I need something like this

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

War es hilfreich?

Lösung

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top