[[UIScreen mainScreen] bounds] is incorrect in resizable iPhone simulator

Originator:davepeck
Number:rdar://18209051 Date Originated:02-Sep-2014 06:07 PM
Status:Closed Resolved:Duplicate (17823608)
Product:Developer Tools Product Version:Xcode 6 beta 7 (6A280n)
Classification:Other Bug Reproducible:Always
 
Summary:
Regardless of the point size selected in the simulator (say, 414x736), [[UIScreen mainScreen] bounds] always returns {{0, 0}, {768, 1024}}, which is incorrect.

Steps to Reproduce:
1. Create a skeleton iOS 8 app
2. Log [[UIScreen mainScreen] bounds] somewhere convenient (like application:didFinishLaunchingWithOptions:)
3. Run the app in the resizable iPhone simulator
4. Set the simulator to a different size (like 414x736) and apply
5. Take a look at your log output




Expected Results:
[[UIScreen mainScreen] bounds] size is 414x736

Actual Results:
[[UIScreen mainScreen] bounds] size is 768x1024

Version:
Xcode 6 beta 7 (6A280n) with iOS Simulator 8.0 (550)

Notes:
Any suggestions on how to work around these and related bugs would be most appreciated!

Configuration:


Attachments:

Comments

Apple has marked this as a duplicate of 17823608


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!