当我使用Parse 1.8.5将数据上传到Parse时,这个云代码在“params”中有编译错误,我无法调试它.
let params = ["phoneNumber" : userPhoneNumber,"username": username,"password": userPassword,"Email": userEmail ] PFCloud.callFunctionInBackground("sendCode",withParameters: params,block: { (response: AnyObject?,error: NSError?) -> Void in if response?.localizedDescription != nil { print(error) var alert = UIAlertView(title: "Failure",message: "SignUp Error",delegate: self,cancelButtonTitle: "OK") alert.show() } else { self.activityIndicator.stopAnimating() } })
错误消息说,params的值中有可选的类型. 确保所有值都被打开.