Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: UIScrollView doesn't scroll down to bottom of its subviews [duplicate]

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?

like image 690
mrd Avatar asked Oct 01 '22 16:10

mrd


1 Answers

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.

like image 64
mrd Avatar answered Oct 13 '22 12:10

mrd