开发者

Disable finger scrolling in a UIScrollView

I am trying to disable scrolling in my UIScrollView, but only when the users tries to.

I can't disable UserInteraction because my UIScrollView contains开发者_如何转开发 UIButton which I need to keep active.

Finally, I have to keep the possibility to scroll by using that kind of code :

CGRect myRect = CGRectMake(200, 0, myScrollView.frame.size.width, [myScrollView bounds].size.height);
[myScrollView scrollRectToVisible:myRect animated:YES];

Thanks for any solution !


Make all the check boxes of UIScrollView's Scrollers section.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜