Ios iPhone 6 plus的尺寸显示为375.0 x 667.0?

Ios iPhone 6 plus的尺寸显示为375.0 x 667.0?,ios,iphone,screen-size,Ios,Iphone,Screen Size,这个让我很困惑 println("screenWidth \(UIScreen.mainScreen().bounds.size.width)") println("screenHeight \(UIScreen.mainScreen().bounds.size.height)") println("viewWidth \(self.view.bounds.size.width)") println("viewHeight \(self.view.bounds.size.height)") i

这个让我很困惑

println("screenWidth \(UIScreen.mainScreen().bounds.size.width)")
println("screenHeight \(UIScreen.mainScreen().bounds.size.height)")
println("viewWidth \(self.view.bounds.size.width)")
println("viewHeight \(self.view.bounds.size.height)")
iphone 6 plus(使用模拟器)返回6 plus的正确大小:

deviceWidth 414.0
deviceHeight 736.0
viewWidth 414.0
viewHeight 736.0
iphone 6 plus(REAL DEAL)返回常规ole 6的正确大小:

deviceWidth 375.0
deviceHeight 667.0
viewWidth 375.0
viewHeight 667.0

这怎么可能呢?

您的设备在“设置->显示和亮度”下将“显示缩放”设置为“缩放”

引用苹果开发者论坛的一篇帖子:

如果手机设置为缩放模式,则您可以获得iPhone 5S屏幕大小(在iPhone 6上)或iPhone 6大小(在iPhone 6 Plus上)。请记住,在iPhone6Plus的缩放模式下,您仍然会看到3倍的屏幕,因此您的3倍资产会被使用


你就是托马斯!谢谢你的解释,这让我很困惑