Parse Cloud with Swift PFIdResultBlock Error
问题 PFCloud.callFunctionInBackground("hello", withParameters: ["test":"tester"]) { (response: AnyObject?, error: NSError?) -> Void in if error == nil { let responseString = response as? String print(responseString) } else { print(error!.description) } } I am getting the error: Cannot convert value of type '(AnyObject?, NSError?) -> Void' to expected argument type 'PFIdResultBlock?' (aka 'Optional<(Optional, Optional) -> ()>') Even if I add as! PFIdResultBlock , the error will not go away. How can