indexPathForCell zwraca zero od ios7

moja aplikacja działała dobrze pod ios6.1. wypróbowałem symulator ios7, a następująca część nie działa:

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];

Zawsze przychodzi:

the section is 0 and row is 0

chociaż wybrano inną sekcję / rząd. Czy ktoś ma pomysł, dlaczego to nie działa pod ios7?

questionAnswers(3)

yourAnswerToTheQuestion