Как в UITableView узнать, что для строки завершена прокрутка ScrollRectToVisible?

Когда я выбираю строку в UITableView, я вызываю scrollRectToVisible:animatedдля GCRect фрейма строки и сразу после этого делаю некоторые другие анимации. Моя проблема в том, что я не знаю, когда завершится анимация из scrollRectToVisible:animated.

Мой код:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView cellForRwoAtIndexPath:indexPath];

    [self.tableView scrollRectToVisible:cell.frame animated:YES];

    //more animations here, which I'd like to start only after the previous line is finished! 
}
10
задан joseph.hainline 1 March 2016 в 17:15
поделиться