I made two different background images for my iPhone application: one at 640x960px (iPhone4s) and one at 640x1136px (iPhone5). But when I create application mockups in Xcode 4.5 Main Storyboard, how do I define and create it for both iPhone4 and iPhone5? So that the background updates automatically when I select the iPhone5 screen?
Just import the background image with the correct suffix
For instance:
myImage.png to display without retina
myImage.png
myImage@2x.png to display the retina
myImage@2x.png
myImage-568h@2x.png for iPhone 5
myImage-568h@2x.png
In your viewController installed:
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.jpg"]];
Remember to name the image correctly: