Wrong screen resolution in Simulator

When I run my app in the simulator I don't get the correct screen resolution.


I query [[UIScreen mainScreen] bounds] when running in simulator in iPhone6 mode and get 1136x640 (after scale).


But iPhone6 resolution is 1334x750.


Choosing other target devices results in same problem.


How can I determine the correct screen size in simulator?


Using XCode Version 6.4 (6E35b)



Sample output from my console:


ios: scale=(2)

ios: before scale, main.screen.size..................=(568,320)

ios: before scale, main.screen.preferred.mode.size...=(640,1136)

ios: before scale, application.frame.size............=(568,320)

ios: before scale, current.mode.size.................=(640,1136)

Answered by KMT in 49397022

Did you provide an iPhone 6 launch image/flag to indicate support for that screen?


Doe your app size correctly on a device?

Accepted Answer

Did you provide an iPhone 6 launch image/flag to indicate support for that screen?


Doe your app size correctly on a device?

Wrong screen resolution in Simulator
 
 
Q