Join Simon Allardice for an in-depth discussion in this video Deleting objects from the table view, part of Core Data for iOS and OS X.
So we just added a whole bunch of code to the Courses Table View Controller to deal…with updating the table view in the case of changes and updates and deletes, so let's…have the Delete feature.…Now this one is much simpler, and it won't require a new view controller, and we actually…already have all the delegate method in place to respond to deletions, so the table view…should be updated automatically.…So everything I need to do is in the CoursesTableViewController.m. What I've got to do is scan through a little…bit because these days by default they're going to provide a method that's commented…out, and this is the one that I want.…
I can't use the jump bar for this because it is commented out, but it's commented out…right now with Override to support editing the table view.…So I'm going to remove those comments here.…This is what we're looking for, the tableView: commitEditingStyle: forRowAtIndexPath.…I am actually going to delete most of it because I don't need the second else, and I actually…don't need the thing that's trying to change the table view, that's already going to be…
- Understanding Core Data and object persistence frameworks
- Creating a Core Data project
- Exploring data modeling
- Creating entities, attributes, and relationships
- Creating managed objects
- Fetching in Core Data
- Implementing undo and redo support
- Creating a Core Data Cocoa app without code
- Responding to validation issues
- Converting store types
- Preloading default data
Skill Level Intermediate
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.
This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:
to the current recommended version:
[self dismissViewControllerAnimated:YES completion:nil];
It should take care of that message.
1. Getting Started
2. Modeling in Core Data
3. Saving in Core Data
Creating managed objects12m 46s
4. Fetching in Core Data
Using predicates9m 32s
5. Putting It Together: iOS
6. Putting It Together: Cocoa
7. Store Types and Model Changes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.