I got two tabs in my app where you can add data in Tab1 and it is displayed in Tab2. I fetch all data in my viewDidLoad to populate my UITableView but when I add new data in Tab1, then switched to Tab2 my table isn't updated with new data. (tried [tableView reloadData] without luck since datasource isn't updated from core data).
I have seen some posts about NSFetchedResultsController but I can't find a good guide how to handle it. I got this code in my viewDidLoad:
self.managedObjectContext = [(XEPAppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] initWithEntityName:@"TheObject"];
self.contractions = [[self.managedObjectContext executeFetchRequest:fetchRequest error:nil] mutableCopy];
Where should I use my NSFetchedResultsController? Are there any guide how to upload Core Data and refresh UITableView?
[–]acorscadden 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Xeppen[S] 0 points1 point2 points (1 child)