views:

70

answers:

1

I am attempting to place scroll view within a UIView that is smaller than the entire iPad screen. I simply add the scroll view as a subview of the UIView and it appears just fine, however when I scroll it, it moves outside of the bounds of that UIView effectively covering up any UI elements that are placed above it.

Is there some way to set the bounds of that scroll view to be the frame of the UIView?

A: 

Try setting clipToBounds to YES on the UIView that is holding the scroll view.

imaginaryboy