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.
精彩评论