I am working on tableview cell in swift and I want to delete a particular cell with a delete button . I have tried taking button through storyboard
but it does not works.
What can I do for it ?
I am working on tableview cell in swift and I want to delete a particular cell with a delete button . I have tried taking button through storyboard
but it does not works.
What can I do for it ?
try this method for tableview ::
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath)
{
if editingStyle == .Delete
{
//code for delete
}
}