top of page

Objective-C: Adding Delete Button To UITableView


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!


Recent Posts

See All
Gerenal: Interesting Links

UICollectionView Custom Layout Tutorial: Pinterest https://www.raywenderlich.com/164608/uicollectionview-custom-layout-tutorial-pinterest-2

 
 
 

Comentários


  • Facebook - White Circle
  • Instagram - White Circle
  • LinkedIn - White Circle

© 2017 by Johnny. Make it just for fun.

bottom of page