开发者

iPad: UITableView Within UIView Covers Elements When Scrolled

开发者 https://www.devze.com 2023-01-13 00:25 出处:网络
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, howev

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

精彩评论

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