Reputation: 943
I'm updating my app for the 4-inch screen of iPhone5.
However, I found that, only in my root view (the view of my rootViewController, a navigation controller) the value of self.view.frame.height is 548 (showing status bar), which is what I want.
Once I push any viewController in the navigation stack, the value of self.view.frame.height in the pushed viewController becomes 460, it seems that the viewController does not know it is running on iPhone5.
To be clear, I hardly use xib files. In fact I just created void xib files,, like showed in the picture below. All the buttons, tables and other subViews are added manually in viewDidLoad method of each viewController.
I've added the [email protected] to the project to adjust iPhone5, but I have not done any other change to the settings to my project or xib files.
The value of 460 of self.view.frame.height would incorrectly affect the positions of some subViews in the view of a viewController on 4-inch screen, but I have not found way to make it realize that the value should actually be 548.
How should I do? Is there any step I missed in adjusting 4-inch screen? Thanks a lot!
Upvotes: 0
Views: 837
Reputation: 333
Select the drop down box "Size" in the "Simulated Metrics" Tab.
Then change the selection to "Retina 4 Full Screen" and your done.
Upvotes: 2