Reputation: 332
I'm working on some apps and I am seriously sad about setting the viewcontroller. Whenever I try my app on different iPhones it looks so fitful. I just want to see my app automatically resized on all iPhones.
I made an example app to explain better.
This is the iPhone 5 screen
and this is the iPhone 6S screen
Upvotes: 0
Views: 590
Reputation: 2105
You definitely need to use Autolayout. This is the main tool used to dev UI through all iDevices. Here is a good start :
https://www.raywenderlich.com/115440/auto-layout-tutorial-in-ios-9-part-1-getting-started-2
You will also need to use size class which use auto layout but allow you to custom your constraints depending on the idevice :
https://www.raywenderlich.com/113768/adaptive-layout-tutorial-in-ios-9-getting-started
That's a lot to learn, but believe me, you'll have to use that :)
Upvotes: 1