Here I need a help from ur side that Im using the tableview delegate method commitEditing sytle to get the delete button for every cell when we swipe.But my problem here is I dont want the delete button for the first row in the tableview and swipe should not work and I dnt have any idea how to implemet this.
Anyone’s help will be much appreciated.
Thank You,
Monish.
UITableViewCellhas delete style by default. To change that you need to implementtableView:editingStyleForRowAtIndexPath:method in your table view delegate. ReturnUITableViewCellEditingStyleNonefor the 1st row andUITableViewCellEditingStyleDeletefor other rows.Edit: Sorry for incomplete answer. You also need to implement
tableView:canEditRowAtIndexPath:method (something like that):Hope that’ll work