有点头疼,使用Parse作为我的后端,并希望将数据传递给PFQTVC,其中包含以下内容
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if (segue.identifier == "propertyListSegue") {
print("Segue data send!")
let pvc = segue.destination as! ExtendedQueryViewController
pvc.dataObj = "Woo!"
} else {
print("No segue data to send")
}
}
这是PFQTVC的代码
var dataObj: String!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
print(dataObj)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
在模拟器上运行它,当我尝试打开没有报告错误的PFQTVC时它就崩溃了
我还有两个其他段到PFLoginViewController和一个完美运行的空白UITableViewController
xcode 8,ios 10