Should one “lock” a UITableView whilst it is updating somehow?
That is, during a data refresh for a UITableView (assuming it takes a few seconds), should one be somehow locking the view itself so that users can’t click through on rows etc?
Just wondering what precautions (if any) a developer should take here.
Depends on the context. A common solution, when there’s no guarantee that the contents of the table will still be valid once the load completes, is to cover it with a semitransparent full-screen overlay view displaying an activity indicator or a progress bar. If you’re just loading new data, though—i.e. the old data in the table is still valid, like when you’re refreshing a news feed or similar—there shouldn’t be a need to lock anything.