Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maybe I did not understand your question but if you want to just disable the <code>NSFetchedResultsController</code> delegate and hence the rendering, as I commented, you can just use a bool value for this. </p> <p>Here the basic idea. Here, <code>stopAutomaticTrackingOfChanges</code> would be public while <code>beganUpdates</code> can be maintained within a class extension.</p> <pre><code>- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller { if (!self.stopAutomaticTrackingOfChanges) { [self.tableView beginUpdates]; self.beganUpdates = YES; } } - (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id &lt;NSFetchedResultsSectionInfo&gt;)sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type { if (!self.stopAutomaticTrackingOfChanges) { switch(type) { // your code here } } } - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath { if (!self.stopAutomaticTrackingOfChanges) { switch(type) { // your code here } } } - (void)controllerDidChangeContent:(NSFetchedResultsController *)controller { if (self.beganUpdates) [self.tableView endUpdates]; } </code></pre> <p>The idea of this has been taken from <code>CoreDataTableViewController.h</code>/<code>.m</code> code by Stanford course (reference <a href="http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2011-fall" rel="nofollow">http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2011-fall</a>). </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.
 

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