Reputation: 539
I'm having issues with the size of my story board and the size of the actual display on the iPhone Simulator. Any ideas?
Upvotes: 7
Views: 8683
Reputation: 1709
For me, Xcode seemed to fire up the iOS Simulator viewing the iPhone 4 model by default. Maybe there's a better way to set this within Xcode, but in the iOS Simulator app you can go to Hardware > Device and select the screen size you want.
Upvotes: 0
Reputation: 21996
There are many correct answers to this question, but the thing is that you can do that by pressing a single button. I had the same problem and this is how I managed to solve it:
Upvotes: 6
Reputation: 539
Figured out the answer on how to keep the display at the regular size without having to add and then remove the bars for every screen. I will have to steal part of an earlier answer:
That makes the storyboard layout the same size as the IPhone simulator.
Upvotes: 0
Reputation: 1658
Uncheck use Autolayout from file inspector
1. go to nib.
2. click on view
3. go to 1st tab
4. Uncheck use Autolayout
Upvotes: 0
Reputation: 4733
Your simulator is proper. No need to resize it.
You only need to follow these steps
1. go to nib/storyboard.
2. click on view
3. check menu on right side
4. go to 4th tab
5. Expand Simulated Metrics
6. Check Status bar is equal to Default
7. Top Bar & Bottom Bar are equal to None & None respectively.
Enjoy Programming!
Upvotes: 4
Reputation: 1102
Your storyboard view is for iPhone 5 but your simulator is iPhone classic. Try changing the simulator to iPhone 5. And if you want to work this view for iPhone classic then try changing the autoresizing for the the two buttons.
Upvotes: 1
Reputation: 854
The problem is that your storyboard is using the iPhone 5 screen size. To change your simulator to use the iPhone 5 emulator, goto the simulator and click on Hardware > Device > iPhone (Retina 4 inch).
Upvotes: 2