title: How to update data available in coredata?
body: <p>Here I got the value in fetchedObjects. How can I update the value in the array?</p>
  
  <pre><code>NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
  
  NSEntityDescription *entity = [NSEntityDescription entityForName:@"Reserve" inManagedObjectContext:self.managedObjectContext]; 
  [fetchRequest setEntity:entity]; 
  
  
  //NSSortDescriptor tells defines how to sort the fetched results
  NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"number" ascending:YES];
  NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
  [fetchRequest setSortDescriptors:sortDescriptors];
  NSLog(@"sort count%d",[sortDescriptors count]);        
  
  fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:nil cacheName:@"Root"];
  
  NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(number = 100)", self.txtReserve.text];
  
  // [fetchRequest setPredicate:predicate];
  [fetchedResultsController.fetchRequest setPredicate:predicate];
  self.fetchedObjects = [self.managedObjectContext executeFetchRequest:fetchRequest error:&amp;error];      
  NSLog(@"Count of array::::%d",[fetchedObjects count]);
  NSManagedObject *device = [fetchedObjects objectAtIndex:0];  
  NSLog(@"device::::%@",device);
  </code></pre>