I'm attempting to embed several sets of buttons and labels in a scroll view using Interface Builder and autolayout. I've tried nearly every solution I can find but nothing gets the scroll view scrolling (i.e. scrolling enabled + no bounces enabled = no movement). In addition, when I do enable bouncing, attempting to scroll down, while revealing the extra content but bouncing back up, leaves what is likely 20px more space at the top of the scroll view, as the content inset seems to get stuck at -20px in the y.
What I've tried so far:
I'd like to avoid writing code to do this, as it seems like the tools should be able to do this, but I will if I have to. But I'm at a loss; I haven't seen anything that would fix this that I shouldn't be able to do in IB just as well as code.
Adding height and width constraints, as well as size 0 spacing constraints between a content view and the scroll view seems to have fixed the scrolling issue, finally. Now if only I could figure out why the contentOffset is being set to 20 by default and when scrolling back to the top.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With