Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate storyboards for iPhone/iPhone Retina/iPad/iPad Retina

I have a question that may sound odd, but being somewhat of a newbie, I am guessing no question is a stupid question...

Do I need separate storyboards for all four devices?

Right now I have two storyboards, one for iPhone and one for iPad, but what I get my view frame it always shows the size of the device, not the retina device. So for example on the iPhone my view size is 320x460, and for iPhone Retina it shows the same... likewise for iPad.

Thanks

like image 682
LilMoke Avatar asked Mar 19 '12 16:03

LilMoke


1 Answers

No, you don't. Yes it's the same resolution for the developer point of view. iOS will make all the adjustment. The only important issue is that if you use images in your app bundle (like tab icons) you have to add one for not retine a one for retina (with double resolution). For example if you have icon.png of 24x24px, you have to add [email protected] of 48x48px. iOS automatically will replace your icon for the "@2x" filename in retina divices.

like image 89
LuisEspinoza Avatar answered Oct 12 '22 09:10

LuisEspinoza