I'm trying to move to a new storyboard when a button is tapped in a custom cell type, but having trouble with the custom class. I currently have this
class submitCell: UITableViewCell {
@IBAction func cancelButton(_ sender: Any) {
}
}
and I need the cancelButton to do this
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let viewController = storyboard.instantiateViewController(withIdentifier: "TripList") as! TripTableViewController
self.present(viewController, animated: true , completion: nil) //Move
Except that .present isn't a method of UITableViewCell, only UIViewController. How can I get this functionality to happen?