Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I still need low-resolution images for using Interface Builder when developing iPhone app for iOS 7?

I started to develop an iPhone app for iOS 7.

Since iOS 7 does not support devices with non-retina display for the iPhone/iPod touch, and it uses high-resolution images on non-retina iPads (iPad 2 and iPad mini) in the iPhone emulation mode, now I think we don't need to provide low-resolution images when developing an iPhone-only app which deployment target is iOS 7.

I thought it's great, but soon I faced a problem when I used a Storyboard; apparently Interface Builder can not display high-resolution images which file names end with @2x.

I feel it's really pity that we have to provide the low-resolution images ONLY for the Interface Builder...

Is there any good workaround for this? Or do we still have to provide low-resolution images if we want to use the Interface Builder?

like image 697
Taka Avatar asked Dec 16 '13 01:12

Taka


1 Answers

You are correct that an iOS 7 iPhone-only app is not going to run on any single-resolution devices, so you only need to provide double-resolution images. Do what you have always done in the past: refer to your image as myImage but name the actual image file [email protected]. Even better, use the asset catalog! Place the double-resolution image in the 2x slot and refer to it by the name of that image set. Either way, this will work perfectly both in the storyboard editor and in the running app; in the storyboard editor, the Media Library and things like buttons that have images will display your image's name as myImage.

like image 186
matt Avatar answered Oct 09 '22 07:10

matt