What to name images for iPhone 5 screen size?
问题 What is the new naming convention for images for the 4-inch retina display? For an image named background.png you add @2x to the name ( background@2x.png ) to tell iOS to use that one for devices with the retina display. What would the suffix be for iPhone 5's screen size? 回答1: You can use my #define s to help you with these images: #define isPhone568 ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && [UIScreen mainScreen].bounds.size.height == 568) #define