Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think I may have found the error, since I changed it I haven't experienced the problem so I am assuming that it's ok.</p> <p>In my implementation of <code>controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:</code> I had this in the switch statement for <code>NSFetchedResultsChangeMove</code>:</p> <pre><code>case NSFetchedResultsChangeMove: [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; // Reloading the section inserts a new row and ensures that titles are updated appropriately. [tableView reloadSections:[NSIndexSet indexSetWithIndex:newIndexPath.section] withRowAnimation:UITableViewRowAnimationFade]; break; </code></pre> <p>As it was used in an older project (which I was not part of), I assumed the entire <code>controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:</code> implementation was okay, since this really is more of a template rather then something you will do anything customised. </p> <p>In consequence I didn't pay much attention to it until I was reading up about it again on the Apple developer site. And I noticed, in case of a <code>NSFetchedResultsChangeMove</code> you must delete a cell, and insert the cell at the new path. Yet I had implemented without really realising - delete the cell and reload the section !</p> <p>In effect I should and now have the following:</p> <pre><code>case NSFetchedResultsChangeMove: [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; [tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndexPath] withRowAnimation:UITableViewRowAnimationFade]; break; </code></pre> <p>Like I said I've not had a problem since. Would love to know from anyone what inner workings would be responsible for this - the exception having been "Attempt to create two animations for cell".</p> <p>Thanks for any interest.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload