I have a UITableView, for which I am reloading each row with new data by using:
for currentIndex in (feeds.count-1).stride(through: 0, by: -1) {
self.feedList[currentIndex] = feeds[currentIndex]
dispatch_async(dispatch_get_main_queue()) {
self.tableView.beginUpdates()
self.tableView.reloadRowsAtIndexPaths([NSIndexPath(forRow: currentIndex, inSection: 0)], withRowAnimation: UITableViewRowAnimation.Middle)
self.tableView.endUpdates()
}
}
This makes all the rows animate together at once. What I want is for each row to animate one after the other. How can I achieve this?