I have an app that was created prior to the new iPhone 5 retina widescreen device.
Now i am trying to support this high definition widescreen.
I adjust the main ViewController and the main window XIB files so that they are set to Autolayout. I can verify that the width/height displayed via the IB shows 320 x 568.
However, when I run in simulator, i can see that the height is still 480.
The code im using to print the height (and width) is in the main view controller's viewWillAppear method:
[UIScreen mainScreen].bounds]
Why is the size.height still 480 instead of 568?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…