iOS 判断iphone ipad 系统版本
//iOS 判断iphone ipad 系统版本 #define ScreenWidth ([[UIScreen mainScreen] bounds].size.width) #define ScreenHeight ([[UIScreen mainScreen] bounds].size.height) #define iOS8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) #define iOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) #define iOS6 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) #define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? YES : NO) #define isPhone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? YES : NO) #define isRetina ([[UIScreen mainScreen] scale] > 1 ? YES : NO)
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 // This code will only compile on versions >= iOS 5.0 #else #endif
相关推荐
chsoft 2020-09-17
Mryiyi 2020-08-07
suweierxing 2020-06-02
yangyujun 2019-12-18
leitingdulante 2020-10-21
硬币0 2020-10-15
ZuoYanDeHuangHun 2020-09-18
MatrixHero 2020-08-20
定格 2020-08-15
ntfsformac 2020-06-23
好好学习天天 2020-06-12
Charliewolf 2020-06-05
fanxiaoxuan 2020-06-03
疯狂紫萧 2020-05-29
liuxudong00 2020-11-19
章鱼之家 2020-10-29
xuegangic 2020-10-17
XxZproject 2020-08-10
ydc0 2020-07-30