-performSegueWithIdentifier:declared in UIViewController. Therefore, you cannot just call it in a subclass UITableViewCell.
You can add an action to this button when you create a cell in a method -tableView:cellForRowAtIndexpath:. Then you can call the method -performSegueWithIdentifier:in this action method. Here is an example assuming we are in a subclass UITableViewController:
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell
cell.button.addTarget(self, action: "someAction", forControlEvents: .TouchUpInside)
return cell
}
:
func someAction() {
self.performSegueWithIdentifier("moveToView", sender: self)
}