How to fit view controller for all iPhones?

Solutions Collect From Internet About “How to fit view controller for all iPhones?”

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 🙂