// Get and set user's profile picture
friendProfiles[indexPath.row].fetchIfNeededInBackgroundWithBlock({
(object: PFObject?, error: NSError?) in
if error == nil {
if let proPic = object!["userProfilePicture"] as? PFFile {
proPic.getDataInBackgroundWithBlock({
(data: NSData?, error: NSError?) in
if error == nil {
// Set user's profile photo
cell.RPUserProfilePicture.image = UIImage(data: data!)
} else {
print(error?.localizedDescription)
}
})
} else {
// Set gender neutral icon
cell.RPUserProfilePicture.image = UIImage(named: "Gender Neutral User-96")
}
Do I have to update the ParseUI framework with cocoapods?
I found the same issue, replace NSError with Error. IT should fix.
fileFoto.getDataInBackground {
(imageData: Data?, error: Error?) -> Void in ...
This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the Contributing Guide
Most helpful comment
I found the same issue, replace NSError with Error. IT should fix.