12/08/2018, 12:00

How to use ScrollView with Autolayout

To use ScrollView, you have to understand. All subview of ScrollView alway add to ContentView. ContentView size is determined by size of all its subview. So, if you want to define size of ContentView you must give size to subview to generate size of ContentView size.

To use ScrollView, you have to understand.

  1. All subview of ScrollView alway add to ContentView.

  2. ContentView size is determined by size of all its subview. So, if you want to define size of ContentView you must give size to subview to generate size of ContentView size. scrollView with autolayout.jpg

0