My code:
...
self.tableView.reloadData()
self.someOldValue = self.someNewValue
...
TableView delegate and datasource methods work with self.someOldValue. I need use self.someOldValue in those methods before it changes. How to do it? Method reloadData() works asynchronous and tableView delegate and datasource methods works with newValue already(self.someOldValue = self.someNewValue
executes before self.tableView.reloadData()
)