更新时间:2023-02-04 17:47:59
如果你的段落存在于您可以使用以下两种视图之间的段标识符进行调用:
If your segue exists in the storyboard with a segue identifier between your two views, you can just call it programmatically using:
performSegue(withIdentifier: "mySegueID", sender: nil)
对于旧版本:
performSegueWithIdentifier("mySegueID", sender: nil)
你也可以这么做:
presentViewController(nextViewController, animated: true, completion: nil)
或者如果您在导航控制器中: p>
Or if you are in a Navigation controller:
self.navigationController?.pushViewController(nextViewController, animated: true)