문제

I'm having some issues getting high resolution tab bar icons displaying correctly for iPhone 4. Basically I'm using the Apple guidelines of 96 x 64 for high resolution icons, but when I do this, my icon looks like it is being scaled many times in the tab bar icon area and only part of the icon appears. If I set the icon size to 30 x 30, the icon displays correctly in terms of proportions but is not sharp because of the higher resolution of the iPhone 4 display.

I've tried other sizes like 64x64 and 60x60 but I get similar problems.

Any ideas?

도움이 되었습니까?

해결책

you have to add @2x to youre iPhone 4 image..

So if you have a 30x30 image named image.png, make a 60x60 version and name it image@2x.png..

다른 팁

You have to name your icon file with @2x! But in the attributes inspector you have to fulfill the field "Image" taking off the @2x on the file name:

example:
Original file name:"icone@2x.png"
Image field: "icone.png"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top