If you want to have a button trigger the segue transition, the easiest thing to do is Control+Click from the button to the view controller and choose a Segue option (like push). This will wire it up in IB for you.
If you want to write the code to do this yourself manually, you can do so by naming the segue (there's an identifier option which you can set once you've created it - you still need to create the segue in IB before you can do it) and then you can trigger it with this code:
V2
@IBAction func about(sender: AnyObject) {
performSegueWithIdentifier("about", sender: sender)
}
V3
@IBAction func about(_ sender: Any) {
performSegue(withIdentifier: "about", sender: sender)
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…