Unless you're going to have a completely different UI for the iPhone 5 vs previous iPhones, you don't really need to worry too much about the screen size. Whenever you do anything in iOS to do with custom rendering of any kind, you specify the coordinates in points, not pixels. iOS will automatically calculate the pixel value based on the device for you.
The only thing you need to concern yourself with is the retina display when it comes to images. For this, you just need to have a double sized image, with @2x on the end. For example, for a pre-retina phone, you may have an image that's 100x100 pixels called image.png
. You then need one called image@2x.png
that is 200x200 pixels. iOS will automatically load the retina version when required.
If you DO want a different UI for iPhone 5, then the solution @user2277872 will be good.
You should definitely look into using Autolayout as well, as this makes life very easy for a number of things, especially if you're not going to have a different UI for iPhone 5, as it will automatically position elements according to a set of pre-defined rules you give it. For example, you may want a button to always be 20px from the bottom of the screen. Autolayout will do this for you, regardless of whether the screen is 4-inches or 3.5.