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,600 courses taught by industry experts.

Deleting shopping lists using the data source and provider

Deleting shopping lists using the data source and provider

From the course: iOS Lean Controllers: 1 Setup, Persistent Data, and Implementation

Deleting shopping lists using the data source and provider

- [Instructor] All right, so in the last lecture, we learned that how we can actually display the information as soon as it gets added to our database. But one of the things that was not working, and if I run the app, you will see it, is the delete functionality. If I try to delete something, the Delete button doesn't even appear. So if I do a swipe over here, you'll see that the Delete is not appearing. And quick glance, a quick look at your shopping list table view controller will actually show you that you are implementing the commit editing style, which basically wants you implement that. You automatically get the delete feature, like a Delete button, but it's not appearing. But few lines above it, you see the reason, it's because you are assigning the tableView DataSource to be your own completely custom DataSource, known as the shoppingListDataSource. So this particular delegate matter is never going to get called. So let's go ahead and cut this out from here, and move this into…

Contents