Skip to content

swifthublearning/Tableview-Cell-Swipe-Show-Delete-Or-More-Button-In-Swift-3-Xcode-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tableview-Cell-Swipe-Show-Delete-Or-More-Button-In-Swift-3-Xcode-8

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]
          }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published