Alex Rivera | Logout

UIScrollView not scrolling

Asked 2010-05-13T04:36:15.870
136

I have a UIScrollView which contains many UIImageViews, UILabels, etc... the labels are much longer that the UIScrollView, but when I run the app, I cannot click and scroll down...

Why might this be?

Thanks

Edit
Report

2 Answers

122

If you cannot scroll the view even after you set contentSize correctly, make sure you uncheck "Use AutoLayout" in Interface Builder -> File Inspector.

answered 2012-11-02T05:50:57.900
45

The answer above is correct - to make scrolling happen, it's necessary to set the content size.

If you're using interface builder a neat way to do this is with user defined runtime attributes. Eg:

enter image description here

answered 2012-04-28T04:55:57.553

Your Answer