I'm trying to use this code
if let userPicture = object.valueForKey("Image")! as! PFFile {
userPicture.getDataInBackgroundWithBlock({
(imageData: Data!, error: Error!) -> Void in
if (error == nil) {
let image = UIImage(data:imageData)
self.ImageArray.append(image)
}
})
}
I got this error
Cannot convert value of type '(Data!, Error!) -> Void' to expected argument type 'PFDataResultBlock?'