一频祝、利用Segue 方法
在performSegueWithIdetifier方法
override func prepareForSegue(segue: UIStoryboardSegue, sender:
AnyObject?) {
var theSegue = segue.destinationViewController as
SecondViewController
theSegue.text = "Pass"
}
二、 利用self.storyboard
var thirdVC =
self.storyboard?.instantiateViewControllerWithIdentifier("ThirdViewController") as ThirdViewController
thirdVC.text = "Pass"
self.navigationController?.pushViewController(thirdVC, animated: true)
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者