I am asking this question just for information and to clear my concepts about images in iOS application (Retina and non-retina devices).
What I currently do is
When I develop an iPhone application and I have to show an image lets say on UIButton using Interface builder I take two images lets suppose submit.png button image of following sizes
- 100x100 px (submit.png)
- 200x200 px (submit@2x.png) for retina display
And in Interface builder I will set the size of UIButton 100x100 px and its just works perfectly.
Question:
Why don't we place only single image lets say submit.png
- 200x200 px (submit.png)
And set UIButton size 100x100 px in interface builder and same image will be used in both retina and non-retina devices.
What is the actual reason of using two images rather than one single image of retina size?
Another similar question,
iPhone 5 is only available in retina display but we have to place its Default images as Default-568h@2x.png. Why at 2x?
