문제

I have submitted my app which support both regular and retina display edition.

I forgot to put one of regular image file (a.png) but it has (a@2x.png) Retina image.
Is it going to be regular iPhone able to show (a@2x.png) image or not?

I have no clue since I don't have 3GS or iPod Touch, but on iPhone regular simulator came out to be show that image.

Any experience?

Thank You.

도움이 되었습니까?

해결책

When iOS loads an image it will check the file name for the correct image

ie. on a retina display device, it will check for imageName + @2x + .png. If it finds it, it will load it. If not, it will load the non-retina image and scale it.

On a non-retina display device the system will not check for the @2x in the filename, therefore it will just try to load imageName.png - if it can't find it, it can't load it, and nothing will display.

I would suggest pulling your binary and updating it.

다른 팁

I haven't tried it, but my guess is it'll fail to load the image entirely. I've found the simulator's behavior regarding hi-res images to be fairly inconsistent with real devices. You'll probably want to fix that up and replace your binary asap.

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