判断iPhone X 以上机型

2019-02-11  本文已影响6人  白色天空729
#define IS_iPhoneX ((([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0f) && ([[[[UIApplication sharedApplication] delegate] window] safeAreaInsets].bottom > 0.0))? YES : NO)
上一篇 下一篇

猜你喜欢

热点阅读