Swipe-able Table View Cell in iOS 9

Try this, updated for Swift 3 (Developer Docs) override func tableView(_ tableView: UITableView, editActionsForRowAt: IndexPath) -> [UITableViewRowAction]? { let more = UITableViewRowAction(style: .normal, title: “More”) { action, index in print(“more button tapped”) } more.backgroundColor = .lightGray let favorite = UITableViewRowAction(style: .normal, title: “Favorite”) { action, index in print(“favorite button tapped”) } favorite.backgroundColor = .orange let … Read more

How to access the content of a custom cell in swift using button tag?

OPTION 1. Handling it with delegation The right way of handling events fired from your cell’s subviews is to use delegation. So you can follow the steps: 1. Above your class definition write a protocol with a single instance method inside your custom cell: protocol CustomCellDelegate { func cellButtonTapped(cell: CustomCell) } 2. Inside your class … Read more