In this lesson, we learn how to add scrollView to a ViewController using AutoLayout.
Steps:
1. Add ScrollView to the ViewController
2. Add constraints to all four corners
3. Add a UIView (content view) and add constraints with the scrollView to all four corners.
4. Set equal width between the UIView and the scrollView.
5. Add height to the UIView (If the height is greater than the height of the device, It automatically becomes scrollable).
Say Hi on Social Media:
LinkedIn: https://www.linkedin.com/in/emacco/
Twitter: https://twitter.com/Its_Macco
If you feel like buying me a coffee :)
https://www.buymeacoffee.com/emmanuelokwara