开发者

Unable to click on any part of the UIScrollView to scroll through the images. There is only a specific porition I can click on

I've some UIImages loaded into a UIScrollView.

However, when I try to scroll through these UIImages, I can only click on a specific area in the screen.

What is th开发者_JAVA百科e property I should look out for to expand the "clickable area"? Such that I can click on any part of the scroll view to start scroll through the images.

Is there anything to do with content size of the scroll view?


Make sure that -userInteractionEnabled is NO for the views you add to your scroll view.

Update: Set -clipsToBounds to YES and see whether the scrollview's frame is just too small and the content goes beyond the bounds of the view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜