func isiPhoneX() ->Bool {
let screenHeight = UIScreen.main.nativeBounds.size.height;
if screenHeight == 2436 || screenHeight == 1792 || screenHeight == 2688 || screenHeight == 1624 {
return true
}
return false
}
func isiPhoneX() ->Bool {
let screenHeight = UIScreen.main.nativeBounds.size.height;
if screenHeight == 2436 || screenHeight == 1792 || screenHeight == 2688 || screenHeight == 1624 {
return true
}
return false
}
本文标题:swift 判断是否是iphonex以上机型
本文链接:https://www.haomeiwen.com/subject/ufdujqtx.html
网友评论