PFUser.currentUser() (Self?). .
PFUser.currentUser()?["picture"]
, , . , , , .
if let userPicture = PFUser.currentUser()?["picture"] as? PFFile {
getDataInBackgroundWithBlock() (NSData? NSError?). , NSData NSError.
userPicture.getDataInBackgroundWithBlock { (imageData: NSData?, error: NSError?) -> Void in
, , :
if let userPicture = PFUser.currentUser()?["picture"] as? PFFile {
userPicture.getDataInBackgroundWithBlock { (imageData: NSData?, error: NSError?) -> Void in
if (error == nil) {
self.dpImage.image = UIImage(data:imageData)
}
}
}