【发布时间】:2015-06-03 14:29:22
【问题描述】:
我一直在寻找这个问题的答案...我不知道如何通过 unwind segue 传递数据。我知道我应该使用prepareForSegue,但我不确定我应该输入什么。我试图从一个类中的 UIPickerView 传递一个变量(myLabel):
func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
myLabel.text = pickerData[row]
}
到另一个班级。我已经有了 unwind segue 代码,但不知道在哪里放置 prepareForSegue 以及在其中放置什么。
如果我的问题需要更多说明,请告诉我。
【问题讨论】: