更新时间:2023-02-01 19:08:28
您可以在 var c $ c> VCB viewController并将数据注入此属性
You just can declare a var
in your VCB
viewController and inject data to this property
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewControllerWithIdentifier("vcB") as VCB;
vc.yourData = SOME_DATA
rootController!.presentViewController(vc, animated: true, completion: nil)
class VCB: UIViewController {
var yourData: AnyObject?
required init?(coder aDecoder: NSCoder){
super.init(coder: aDecoder)
}
}