Why doesn't “[self.tableView reloadData]” ensure I see the latest row for data I just added to a UITableView? (code included)?

From your code sample, it looks like you've used the recommended Core Data method where you have a NSFetchedResultsController managing the tableview's data. If that is the case, then you need to tell the tableview's fetchedresultscontroller to re-fetch the data before calling reloadData So before reloadData, tell your NSFetchedResultsController to re-fetch the data self frc performFetch:&error Inserting the object into the managedcontext doesn't make it available to the tableview.

From your code sample, it looks like you've used the recommended Core Data method where you have a NSFetchedResultsController managing the tableview's data. If that is the case, then you need to tell the tableview's fetchedresultscontroller to re-fetch the data before calling reloadData. So before reloadData, tell your NSFetchedResultsController to re-fetch the data self frc performFetch:&error; Inserting the object into the managedcontext doesn't make it available to the tableview.

I've posted in the original post the code I'm currently using to update the list view data, so now this method is called from viewDidLoad + the update row method. – Greg Mar 31 at 9:47 Greg - there is a way to do this less heavy-handed, but it gets real complex. You then need to implement a bunch of delegates that let your tableView be updated (beginUpdates/endUpdates) I used the sample "Recipes" to learn how to use CoreData and fetch requests – ferdil Apr 8 at 9:45.

Try to reload data before dismissing the view controller.

You had to call the table reload with as classname. Tableview reloadData; Hope it helps.....

Note I understand there is an approach where you manually create a new row via "insertRowsAtIndexPaths" in the tableview. Not sure which approach is best, but in any case would like to understnad why reloadData is not working here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions