/** 是否是苹果X系列(刘海屏系列) */
BOOL pv_IsIphoneX_ALL(void) {
BOOL isPhoneX = NO;
if (@available(iOS 11.0, *)) {
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;
}
return isPhoneX;
}
/** 是否是苹果X系列(刘海屏系列) */
BOOL pv_IsIphoneX_ALL(void) {
BOOL isPhoneX = NO;
if (@available(iOS 11.0, *)) {
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;
}
return isPhoneX;
}
本文标题:是否是苹果X系列(刘海屏系列)
本文链接:https://www.haomeiwen.com/subject/ducjortx.html
网友评论