Reputation: 1134
Whenever I create a new project and select the single view application, the UIViewControllers are too big for any iphone emulator. How can the view controllers be resized to properly fit onto the screen? and how do I begin to make the interface be consistent across multiple devices with different resolutions?
Upvotes: 2
Views: 785
Reputation: 309
You need to use the auto-layout and constraints to make the objects on the View Controller sit correctly
Upvotes: 0
Reputation: 11201
Go to Attributes Inspector -> Select a View Controller -> In the simulated metrics ,change the size.
You can choose the size you need.
Upvotes: 1
Reputation: 6795
You talking about Size Classes
technology, when you create universal layout for all kind of devices. You can switch between exact models of devices to adjust UIViewController
size that you see.
However, if you wish to change the size manually, switch to Size Inspector
and set Simulated Size
to Freeform
and enter values manually
Upvotes: 0