xcode 5与ios 7的屏幕适配问题

#define DEVICE_IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568)



float height = DEVICE_IS_IPHONE5?568:480;

if (height == 568) {

    // 4"



} else {



   // 3"



}


http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution/16914009#16914009

iOS 6 apps - how to deal with iPhone 5 screen size?

 
 

你可能感兴趣的:(xcode)