当用户在tableView中选择一行时,我目前正在尝试将数据传递给另一个视图控制器
应用程序不断以“无法识别的选择器发送到实例”终止
这是我用来将数据传递到另一个视图的代码,是的,selectedUUID字符串存在于我试图将数据传递到的视图中
let data = self.journeyArr[indexPath.row]
let uuid = (String(data.uuid))
let Storyboard = UIStoryboard(name: "Main", bundle: nil)
let JmvC = Storyboard.instantiateViewController(withIdentifier: "JourneyMessageViewController") as! JourneyMessageViewController
JmvC.selectedUUID = uuid
self.navigationController?.pushViewController(JmvC, animated: true)
这是我在表格中选择一行时出现的错误
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LoopUltimate.JourneyMessageViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x10950e430'