开发者

iPad: UITableView Within UIView Covers Elements When Scrolled

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜