Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func getImage(imageFunc: ((Profile, UIImage?) -> Void)?) -> Void {
- let manager = SDWebImageManager.sharedManager()
- manager.downloadImageWithURL(self.imageUrl, options: SDWebImageOptions(0), progress: nil) { (resultImage, error, cacheType, finished, url) -> Void in
- if imageFunc != nil {
- imageFunc!(self, resultImage != nil ? resultImage : UIImage(named: "profileButton"))
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement