开发者

Disable finger scrolling in a UIScrollView

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

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

精彩评论

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