Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

Video Tutorial: Swift Scroll View School Part 2: Scrolling

In this video tutorial, you'll get started with your first scroll view!


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3911-scroll-view-school/lessons/3

Hi,

as of Swift 2.x you’ll need to use:

scrollView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]

instead of:

scrollView.autoresizingMask = .FlexibleWidth | .FlexibleHeight

1 Like

Hi,

as of Swift 3.x you’ll need to use:

scrollView.autoresizingMask = [.flexibleWidth, .flexibleHeight]

instead of:

scrollView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]