0

How to use ScrollView with Autolayout

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


All Rights Reserved

Viblo
Let's register a Viblo Account to get more interesting posts.