放大模式的方法
debugPrintln("大小:\(UIScreen.mainScreen().currentMode?.size)")
打印 | 标准模式 | 放大模式 |
---|---|---|
iPhone6 | 大小:Optional((750.0, 1334.0)) | 大小:Optional((640.0, 1136.0)) |
iphone6Plus | 大小:Optional((1242.0, 2208.0)) | 大小:Optional((1125.0, 2001.0)) |
也可以说 iPhone6以及iphone6Plus的放大模式 就是iPhone5s的放大版
UIScreenModeDidChangeNotification