Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone 4 resolution difficulty - @2x naming technique not working for button image

I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is [email protected]. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice the size (ie twice as tall, twice as wide) as the lower resolution image, yet the office's iPhone4 still only loads the low resolution image.

Does anyone have any ideas what the problem might be?

I have read all the relevant Apple documentation.

Thanks! Tristan

like image 529
WoodenKitty Avatar asked Aug 17 '10 06:08

WoodenKitty


1 Answers

Just assign the image property "SearchImage.png" and include both SearchImage.png and [email protected] in your main bundle and it will load the correct image.

See https://devforums.apple.com/message/233916#233916.

like image 81
chrish Avatar answered Nov 08 '22 20:11

chrish