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