Quando seleziono una riga in un UITableView, chiamo scrollRectToVisible:animated
sul GCRect del frame della riga, e subito dopo faccio altre animazioni. Il mio problema è che non so quando l'animazione da scrollRectToVisible:animated
è completa.In una UITableView, come faccio a sapere quando scrollRectToVisible è completo per una riga?
Il mio codice:
- (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!
}
+1 Buona domanda, ma temo che la risposta sia: non si sa quando 'scrollRectToVisible: animated:' termina. – Sam
La risposta alla seguente domanda potrebbe essere d'aiuto anche qui: http://stackoverflow.com/questions/7198633/how-can-i-tell-when-a-uitableview-animation-has-finished – fishinear