문제

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