indexPathForCell gibt seit ios7 nil zurück

Meine App lief einwandfrei unter ios6.1. habe den ios7 simulator ausprobiert und der folgende teil funktioniert nicht:

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

Es kommt immer:

the section is 0 and row is 0

obwohl ein anderer Abschnitt / Zeile ausgewählt wurden. Hat jemand eine Idee, warum dies unter ios7 nicht funktioniert?

Antworten auf die Frage(3)

Ihre Antwort auf die Frage