This Tutorial. I am Show you Tableview Cell Swipe Show Delete Or More Button In Swift 3 Xcode 8
Show More Or Delete Button Add One Tableview Method in TableViewController Class
Add this Method in TableViewController.swift Class -->
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
}
This is Full Code -->
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
let more = UITableViewRowAction(style: .normal, title: "More", handler: { action , indexPath in
print("More Click SuccessFully")
})
let delete = UITableViewRowAction(style: .destructive, title: "Delete", handler: { action , indexPath in
print("Delete Click SuccessFully")
})
return [more,delete]
}