This is my stupid question. Boo, I need to call
[table reloadData];
after every time I call executeFetch in NSFetchedResultsController to update the table view?
[self fetchedResultsController] performFetch:nil];
If you configure the UITableViewController as NSFetchedResultsControllerDelegate, you can implement the controllerDidChangeContent: method:
controllerDidChangeContent:
- (void)controllerDidChangeContent:(NSFetchedResultsController *)controller { [self.tableView reloadData]; }
Take a look at fooobar.com/questions/434100 / ....
Apple documentation here
Happy coding :)
if the method [self fetchedResultsController] performFetch:nil]; leads to a new data set, and you want to load a table with this new data, you will need to do this work.
Source: https://habr.com/ru/post/1391603/More articles:generateCGImagesAsynchronouslyForTimes in ARC - iosHow to improve SSRS performance - reporting-servicesHow can I prohibit the downloading and use of web fonts illegally? - fontsRegister device-specific autorun handler - c #MySQL from PHP to Xcode? - phpwkhtmltopdf: page breaks and multiple column layouts not working - ruby-on-railsDictionary iteration in python and removing space - pythoncom.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException in sleep mode - javaHow to remove null values ββfrom a 2D array? - javaGwt i18n> generates property files - internationalizationAll Articles