Dimitre Bogdanov
Dimitre Bogdanov

Reputation: 396

UIScrollView scroll enabling

I'm currently working on a Swift app that requires a few UIScrollViews, however I'm running into some problems making it work for all device sizes.

In this situation, I would have a content that would all appear on an iPhone 6, but not necessarily on an iPhone 4 or 5.

I've got a scroll view set up with some content and I would like to make it scrollable only if you don't see the full content.

Is there a way to perhaps detect if a certain element is visible?

Upvotes: 0

Views: 5133

Answers (1)

Nilo0f4r
Nilo0f4r

Reputation: 168

the property scrollView.isScrollEnabled = true by default, and if the content is bigger than screen the user will be able to scroll.

Upvotes: 3

Related Questions