Reputation: 11
I have an UIImageView that I use to show a png file in an iPad game to identify the player faction. The png is 184x184, the UIImage view is 92x92. When I run the app in the simulator with retina display it clearly loses quality, but I don't get why. http://oi46.tinypic.com/2cg0n5k.jpg I have many other images but no problems with them. What could it be?
Upvotes: 1
Views: 737
Reputation: 195
When I do this I actually always have two files... Here's how I would do it:
1) Create PNG file that's 92x92 and name it image.png (for demonstration)
2) Create PNG file that's 184x184 and name it [email protected]
Then when you plug them into the image view you can make it display "image.png" and it will pull image@2x on its own if it is indeed a retina display.
Upvotes: 2