I have a UIScrollView which contains more subviews then the screen can display (that's why I am using the scrollview), but the scrollview doesn't allow for the bottom most subviews to scroll into view (they only bounce back, when scrolled down to the bottom, but are unreachable for user interaction) Any suggestions?
Asked
Active
Viewed 8,730 times
5
-
4Change your `scrollview.contentSize` to be vertically bigger. – Putz1103 Feb 04 '14 at 20:50
-
Are you using autolayout ? If you do then check my answer : http://stackoverflow.com/a/21456360/507323 – Alexis Feb 04 '14 at 20:56
-
Did you see this: http://stackoverflow.com/questions/19212877/scrollview-not-working-in-ios7-with-autolayout ? – Dmitry Sikorsky Feb 04 '14 at 21:02
-
@Putz1103 - doesn't work – mrd Feb 04 '14 at 21:15
-
Please add some relevant code. – LuisCien Feb 04 '14 at 21:38
1 Answers
5
I was using AutoLayout with the suggested constraints. Removing a single constraint fixed it, though it was just a lucky guess. Still don't understand why removing that constraint from the myriad of suggested constraint fixed the problem. I only understand now, that when using AutoLayout, UIScrollViews may not work if the constraints are incorrect, or no constraints are applied at all.

mrd
- 4,561
- 10
- 54
- 92