Core Data by Tutorials by By Pietro Rea & By Aaron Douglas & By Matthew Morey

Core Data by Tutorials by By Pietro Rea & By Aaron Douglas & By Matthew Morey

Author:By Pietro Rea & By Aaron Douglas & By Matthew Morey
Language: eng
Format: epub
Publisher: Ray Wenderlich


controller(_:didChange...): This method is quite a mouthful. And with good reason — it tells you exactly which objects changed, what type of change occurred (insertion, deletion, update or reordering) and what the affected index paths are.

This middle method is the proverbial glue that synchronizes your table view with Core Data. No matter how much the underlying data changes, your table view will stay true to what’s going on in the persistent store.

controllerDidChangeContent(_:): The delegate method you had originally implemented to refresh the UI turned out to be the third of three delegate methods that notify you of changes. Rather than refreshing the entire table view, you just need to call endUpdates() to apply the changes.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.