{"action":"opened","issue":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/1669","repository_url":"https://api.github.com/repos/rs/SDWebImage","labels_url":"https://api.github.com/repos/rs/SDWebImage/issues/1669/labels{/name}","comments_url":"https://api.github.com/repos/rs/SDWebImage/issues/1669/comments","events_url":"https://api.github.com/repos/rs/SDWebImage/issues/1669/events","html_url":"https://github.com/rs/SDWebImage/issues/1669","id":176868537,"number":1669,"title":"Cashing wrong image","user":{"login":"Nikiraf","id":15932064,"avatar_url":"https://avatars.githubusercontent.com/u/15932064?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikiraf","html_url":"https://github.com/Nikiraf","followers_url":"https://api.github.com/users/Nikiraf/followers","following_url":"https://api.github.com/users/Nikiraf/following{/other_user}","gists_url":"https://api.github.com/users/Nikiraf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikiraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikiraf/subscriptions","organizations_url":"https://api.github.com/users/Nikiraf/orgs","repos_url":"https://api.github.com/users/Nikiraf/repos","events_url":"https://api.github.com/users/Nikiraf/events{/privacy}","received_events_url":"https://api.github.com/users/Nikiraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T10:14:30Z","updated_at":"2016-09-14T10:14:30Z","closed_at":null,"body":"Hi, I have problem with loading image. Here is my code that sometimes shows wrong image\r\n\r\n`let url = NSURL(string: friend.profileImage as String)\r\n            let block: SDWebImageCompletionBlock! = {(image: UIImage!, error: NSError!, cacheType: SDImageCacheType, imageURL: NSURL!) -> Void in }\r\n            self.friendImage.sd_setImageWithURL(url, completed: block)`\r\n\r\nWhen I try to load image without SDWebImage it show valid image. Code example:\r\n\r\n`let url = NSURL(string: friend.profileImage)\r\n            dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {\r\n                let data = NSData(contentsOfURL: url!) //make sure your image in this url does exist, otherwise unwrap in a if let check\r\n                dispatch_async(dispatch_get_main_queue(), {\r\n                    self.friendImage.image = UIImage(data: data!)\r\n                });\r\n            }`\r\n\r\nProblem is not with reusable cell. All cells can fit on screen"}}
{"actor":{"display_login":"Nikiraf"}}