How can I programmatically force-stop scrolling in a UIScrollView?
问题 Note: The answer given here doesn't work for me. I have a UIScrollView (not a table view, just a custom thing), and when the user takes certain actions, I want to kill any scrolling (dragging or deceleration) inside the view. I've tried doing e.g. this: [scrollView scrollRectToVisible:CGRectInset([scrollView bounds], 10, 10) animated:NO]; on the theory that, given a rect that's already known visible, the scrolling will just stop where it is, but it turns out that this doesn't have any effect-