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?

 
 
posted @ 2014-04-03 10:15  嘟嘟夜未央  阅读(183)  评论(0编辑  收藏  举报