故事板中有几个段,都有标识符。是否可以通过代码访问它们并更改其锚?像这样的:mySegue1.anchor = someOtherView 最佳答案 试试这个 self.performSegueWithIdentifier("YourSegueIdentifier", sender: self)