let iPhoneX = (UIScreen.instanceMethod(for: #selector(getter: UIScreen.main.currentMode)) != nil) ? __CGSizeEqualToSize(CGSize.init(width: 1125, height: 2436), (UIScreen.main.currentMode?.size)!) : false
let iPhoneX = (UIScreen.instanceMethod(for: #selector(getter: UIScreen.main.currentMode)) != nil) ? __CGSizeEqualToSize(CGSize.init(width: 1125, height: 2436), (UIScreen.main.currentMode?.size)!) : false
本文标题:Swift 宏定义iPhoneX
本文链接:https://www.haomeiwen.com/subject/kkljvxtx.html
网友评论