Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func richiamoImmagine()
- {
- let avatarFile = PFUser.currentUser()!["Avatar"] as! PFFile
- avatarFile.getDataInBackgroundWithBlock {
- (imageData:NSData?, error:NSError?) -> Void in
- if error == nil {
- if let finalimage = UIImage(data: imageData!) {
- self.avatarImage.image = finalimage
- }
- }
- }
- }
- if let "variable" == avatarFile
- if let finalimage = UIImage(data: imageData!) {
- if error == nil && imageData != nil {
- if let imageData = imageData where error == nil {
- if let finalimage = UIImage(data: imageData) {
- self.avatarImage.image = finalimage
- }
- }
- if let avatarFile = PFUser.currentUser()?["Avatar"] as? PFFile {
- }
Add Comment
Please, Sign In to add comment