let vc = self.storyboard?.instantiateViewControllerWithIdentifier("YOUR_IDENTIFIER") as! YOUR_CONTROLLER
//Setup the properties
vc.PROPERTY = "DATA" //this property variable has to be there in your destination view controller
self.presentViewController(vc, animated: true, completion: nil)
2条答案
按热度按时间nimxete21#
您需要的是称为
prepareForSegue()
的文件,其中包含您需要的所有信息,并将其发送到下一个ViewControllerdes4xlb02#
或者您可以使用
prepareForSegue: