I’ve set
scrollview.bounces = NO;
and I cannot find anything else that maybe relevant. When the scrollview is at the top or botton of the view and i try and scroll it further, it slides down and I can see the parent view behind it.
Is there something that can be done to stop this behavious?
Thanks,
-Code
There are 2 relevant parts to the
UIScrollViewin this case. The scroll view contents and the scroll view.Your scrollview doesn’t move on a scroll/drag. The
CGRectframe stays constant.Your scrollview contents move up and down on scroll/drag.
It sounds like the contents of your scroll view have an opaque background which hides the stuff behind the scrollview. But when you go beyond the bounds of the contents, you are see what is behind the scroll view because the scrollview itself has a transparent background.
Solution: Give your
UIScrollViewa opaque background.