Cuando selecciono una fila en una UITableView, llamo al scrollRectToVisible:animated
en el GCRect del marco de la fila e inmediatamente después hago otras animaciones. Mi problema es que no sé cuándo se completó la animación de scrollRectToVisible:animated
.En una UITableView, ¿cómo sé cuándo se completa scrollRectToVisible para una fila?
Mi código:
- (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 Buena pregunta, pero me temo que la respuesta es: no sabes cuándo 'scrollRectToVisible: animated:' finaliza. – Sam
La respuesta a la siguiente pregunta también puede ser útil aquí: http://stackoverflow.com/questions/7198633/how-can-i-tell-when-a-uitableview-animation-has- finished – fishinear