indexPathForCell devuelve cero desde ios7
mi aplicación estaba funcionando bien bajo ios6.1. probé el simulador ios7 y la siguiente parte no funciona:
EditingCell *cell = (EditingCell*) [[textField superview] superview];
NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
NSLog(@"the section is %d and row is %d", indexPath.section, indexPath.row);
NSUInteger section = [indexPath section];
NSUInteger row = [indexPath row];
NSString *rowKey = [[keysForRows objectAtIndex: section] objectAtIndex: row];
Siempre viene
the section is 0 and row is 0
aunque se seleccionó otra sección / fila. ¿Alguien tiene una idea de por qué esto no funciona bajo ios7?