Objective-C: Adding Delete Button To UITableView
- Johnny Lee
- Jan 16, 2018
- 1 min read
Pre-requisites: You are able to form a UITableView yourself.
It sounds like tedious to add a delete Button for UITableView. But The truth is way simpler that you imagine. By just adding a delegate Method:
UITableView will handle the rest of things for you :) Remember to delete the data in your own array (Step 1 in the Gist), otherwise the app will be crashed.
However, if you want some custom control like swiping right for marking mails to read/ mute the conversation like Whatsapp, we need to make it in our own. I will make a post for it later.
Happy coding!
Comentários