Когда я выбираю строку в 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!
}