将数据从一个视图控制器传递到另一个视图,显示为nil

时间:2018-08-22 06:53:25

标签: swift swift4

//第一个X = sparse.csr_matrix(1./2.*np.array([[0.,1.],[1.,0.]])) print(X) ,其中viewController包含数据。我在此Tvshowpath中打印了Tvshowpath2,数据已打印//

viewController

///在第二个@objc var TvshowPath = NSDictionary() override func viewDidLoad() { super.viewDidLoad() let playerPage = self.storyboard?.instantiateViewController(withIdentifier: "playerLayer") as! PlayerLayerViewController playerPage.TvshowPath2 = TvshowPath print(playerPage.TvshowPath2) self.navigationController?.pushViewController(playerPage, animated: true) } 中,viewController数据为空

Tvshowpath2

0 个答案:

没有答案