Swift - Segue from Button inside a cell
问题 i have a custom cell attached to TableViewCell class, and i have a button inside that custom cell, i want whey i press the button it segues to another view controller, but the: performSegueWithIdentifier(identifier: String, sender: AnyObject?) function is not recognised, how to fix that ? Edit: 回答1: -performSegueWithIdentifier: method is declared in UIViewController . So you can't just call it in UITableViewCell subclass. You can add an action to that button when you are creating cell in