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
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí