smoothRenegade
smoothRenegade

Reputation: 71

iOS @2x applied to non-retina and not scaling correctly

I have *@2x version of every image I use in my app and as long as I test in simulator everything works fine. But for some reason on my iPod 4 (non-retina) app not only loads wrong images, but also scales them about 4 times their accual size. Answer given in this topic would help with scaling problem, but I still have to solve non-retina - retina issue.

Upvotes: 2

Views: 864

Answers (2)

Magyar Miklós
Magyar Miklós

Reputation: 4272

you have to make background.png (320-480) for non-retina. and [email protected] (640-960) for retina, if you want to develope for iphone5 too you have to make a [email protected] (640-1136) too

Upvotes: 1

Head_Worx
Head_Worx

Reputation: 136

you need to have two files one for retina and other for non-retina display

ex: [email protected] (bigger file for retina) myImage.png (smaller file for non-retina)

and then just call [UIImage imageNamed:@"myImage"]

it should work *make sure to clean everything, and try again.. hope that helps.

Upvotes: 5

Related Questions