Jak stwierdzić, kiedy UITableView ukończył ReloadData?

Próbuję przewinąć do dołu UITableView po zakończeniu wykonywania[self.tableView reloadData]

Pierwotnie miałem

 [self.tableView reloadData]
 NSIndexPath* indexPath = [NSIndexPath indexPathForRow: ([self.tableView numberOfRowsInSection:([self.tableView numberOfSections]-1)]-1) inSection: ([self.tableView numberOfSections]-1)];

[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];

Ale potem przeczytałem, że reloadData jest asynchroniczny, więc przewijanie nie następuje od czasuself.tableView, [self.tableView numberOfSections] i[self.tableView numberOfRowsinSection wszystkie są 0.

Dzięki!

Dziwne jest to, że używam:

[self.tableView reloadData];
NSLog(@"Number of Sections %d", [self.tableView numberOfSections]);
NSLog(@"Number of Rows %d", [self.tableView numberOfRowsInSection:([self.tableView numberOfSections]-1)]-1);

W konsoli zwraca Sections = 1, Row = -1;

Kiedy robię dokładnie te same logi NSLcellForRowAtIndexPath Dostaję sekcje = 1 i wiersz = 8; (8 ma rację)

questionAnswers(15)

yourAnswerToTheQuestion