lundi 2 février 2015

6 plus dimensions showing up as 375.0 x 667.0?

This one is perplexing me.



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 (USING SIMULATOR) returns the correct size for an 6 plus:



deviceWidth 414.0
deviceHeight 736.0
viewWidth 414.0
viewHeight 736.0


iphone 6 plus (REAL DEAL) returns the correct size for a regular ole 6:



deviceWidth 375.0
deviceHeight 667.0
viewWidth 375.0
viewHeight 667.0


How might this be possible?




Aucun commentaire:

Enregistrer un commentaire