If a label is tapped in a table view cell, I would like to perform a Segue to take you to another page.
I get the following error Value of type [UITableViewCell] has no member 'performSegueWithIdentifier'
class IdeaCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
let tapUser = UITapGestureRecognizer(target: self, action: #selector(IdeaCell.goToUserPage(_:)))
tapUser.numberOfTapsRequired = 1
usernameLbl.addGestureRecognizer(tapUser)
}
func goToUserPage(sender: UITapGestureRecognizer) {
self.performSegueWithIdentifier("goToTableFromOriginal", sender: nil)
}
}