define isIphoneX ({\
int tmp = 0;
if (@available(iOS 11.0, *)) {
if ([UIApplication sharedApplication].delegate.window.safeAreaInsets.top > 20) {
tmp = 1;
}else {
tmp = 0;
}
}else {
tmp = 0;
}
tmp;
})
int tmp = 0;
if (@available(iOS 11.0, *)) {
if ([UIApplication sharedApplication].delegate.window.safeAreaInsets.top > 20) {
tmp = 1;
}else {
tmp = 0;
}
}else {
tmp = 0;
}
tmp;
})
本文标题:iphoneX机型判断
本文链接:https://www.haomeiwen.com/subject/gqmwbqtx.html
网友评论