iphone - Display shift when adding rows to UITableView -


I have displayed a UITableView underlying NSFetchedResultsController.

When fetchedResultsController is updated,

  - (zero) controller: (NSFetchedResultsController *) controller didCangeObject: (id) for anObject atInexPath: (NSIndexPath *) index Change Type: (NSFetchedResultsChangeType) type newIndexPath: (NSIndexPath *) is called newIndexPath { 

and the following is executed:

  Cases NSFetchedResultsChangeInsert: [ TableView insertRowsAtIndexPaths: [NSArray arrayWithObject: shiftedIndexPath] withRowAnimation: UITableViewRowAnimationFade]; break;  

cellForRowAtIndexPath is called only for the new line (which is logical)

The problem is still that all values ​​are being moved to the lines of the table view bottom. The first line displays its title; the second row displays the title of the first row, the third line is the title of the second row, etc. And then I say that, the third line will display the title of the second row, the fourth row of the third row etc.

I can not understand what might be, especially because CellForRowAtIndexPath is called only for the new line (which is logical) and not for all these rows. Also, if I click on these lines which have the wrong title, it opens the correct document (didSelectRowAtIndexPath works correctly with indexPath)

What could be any clues? Thanks!

What is the code that is called due to representative methods? Please edit your answer and add it to the code so that we can see the full life cycle of this event.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -