How do I make a UITableView stop scrolling

ios, scroll, uitableview

Solution

A `UITableView` is a subclass of `UIScrollView`. If you tell it to scroll to its current position, it will stop scrolling so this should work for you:

[tableView setContentOffset:tableView.contentOffset animated:NO];

Problem

I don't mean that I want to disable scrolling. I want to be able to programmatically tell the table to immediately stop moving (but then it should still be scrollable after than). Is this possible?

Original source

Related problems