From the course: iOS Lean Controllers: 1 Setup, Persistent Data, and Implementation
Unlock this course with a free trial
Join today to access over 22,500 courses taught by industry experts.
Deleting records
From the course: iOS Lean Controllers: 1 Setup, Persistent Data, and Implementation
Deleting records
- [Instructor] Hi and welcome back. In the last lecture, we learned that how we can display information, basically of our shopping list, in a UITableVieControl using NS FetchResultsController. And in this lecture I'm gonna show you how you can delete the records from the database SQLite using core data. Now the first thing I'm gonna do is run the application so you have a much better idea of what we're looking at. Now once the application launches, you can see a number of shopping lists being added to our application. If I swipe left to right or right to left, as you can see, it's not showing me any delete button. So the first task for me would be to enable the delete button. Now that is not a big deal because there is a delegate matter of the UITableView delegate we just call commit at editingStyle. And that is responsible for displaying a delete button. So lets go ahead and implement that as you can see there is no implementation it's kinda empty. But lets go ahead and run our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.