我想将数据(例如set var)从modal segue传递给parent,我该怎么做?
我正在使用该代码退出模态segue:
@IBAction func doneClicked(sender: AnyObject) {
self.dismissViewControllerAnimated(true, completion: nil)
}
Run Code Online (Sandbox Code Playgroud)
我不能segue.destinationViewController在这里使用传递数据,就像我以前在push segues上做的那样.