Search code examples
iosimageretina-display

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.


Solution

  • 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.