Reputation: 71
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
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
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