I am开发者_JAVA百科 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?
Try setting clipToBounds to YES on the UIView that is holding the scroll view.
精彩评论