title: core data with tableview
body: <p>im using storyboard and core data my entires are being updated in the database but not being reflected in my tableview when it comes to my fetchedrequestcontroller n ans sets the entity it crashes any clue as to why im posting the code below thanks for any help.</p>
  
  <pre><code>-(NSFetchedResultsController *)fetchResultsController
  {
      if(fetchResultsController != nil)
      {
          return fetchResultsController;
      }
  
      NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
  
      NSEntityDescription *entity = [NSEntityDescription entityForName:@"Persons" inManagedObjectContext:self.managedObjectContext];
  
      [fetchRequest setEntity:entity];
  
      NSFetchedResultsController *afetchresultscontroller = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:managedObjectContext sectionNameKeyPath:nil cacheName:@"Root"];
      afetchresultscontroller.delegate = self;
      self.fetchResultsController = afetchresultscontroller;
  
      return fetchResultsController;
  }
  </code></pre>