{"action":"created","issue":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/1295","labels_url":"https://api.github.com/repos/rs/SDWebImage/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/rs/SDWebImage/issues/1295/comments","events_url":"https://api.github.com/repos/rs/SDWebImage/issues/1295/events","html_url":"https://github.com/rs/SDWebImage/issues/1295","id":106624091,"number":1295,"title":"SDWebImage - Image from url didn't replace placeholder image after it's finished download","user":{"login":"Crementae","id":14299645,"avatar_url":"https://avatars.githubusercontent.com/u/14299645?v=3","gravatar_id":"","url":"https://api.github.com/users/Crementae","html_url":"https://github.com/Crementae","followers_url":"https://api.github.com/users/Crementae/followers","following_url":"https://api.github.com/users/Crementae/following{/other_user}","gists_url":"https://api.github.com/users/Crementae/gists{/gist_id}","starred_url":"https://api.github.com/users/Crementae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crementae/subscriptions","organizations_url":"https://api.github.com/users/Crementae/orgs","repos_url":"https://api.github.com/users/Crementae/repos","events_url":"https://api.github.com/users/Crementae/events{/privacy}","received_events_url":"https://api.github.com/users/Crementae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-15T19:04:29Z","updated_at":"2015-09-16T11:53:18Z","closed_at":null,"body":"I'm using SDWebImage to download and cache images in an UIImageView asynchronously but I'm facing some problems. \r\n\r\nIn my project I create a pin marker which has a dialogue box that have UIImageView in it.\r\n\r\nThe problem that I face is the image from url didn't replace place holder image after it's finished download. The first click on pin marker will always display the place holder image.\r\n\r\nThe image from url will only display after I click pin marker for the second time.\r\n\r\nI want to display image from the url in the first click what should I do?\r\n\r\nhere is my code\r\n```\r\n    -(UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker{\r\nPlaceData *currentMarker = [self findDataByMarker:marker];\r\n\r\nUIView *dialogView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 261, 95)];\r\n\r\n// Create background image\r\nUIImageView *dialogBackground = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@\"MapDialog.png\"]];\r\n[dialogView addSubview:dialogBackground];\r\n\r\nUIImageView * thumbnail = [[UIImageView alloc] init];\r\n\r\n[thumbnail sd_setImageWithURL:[NSURL URLWithString:currentMarker.thumbnail] placeholderImage:[UIImage imageNamed:@\"placeholder.png\"] options:SDWebImageRefreshCached];\r\n\r\nNSLog(@\"URL %@\", currentMarker.thumbnail);\r\nNSLog(@\"thumbnail %@\",thumbnail);\r\n\r\nCGRect tmpFrame = thumbnail.frame;\r\ntmpFrame.origin.x = 15;\r\ntmpFrame.origin.y = 14;\r\ntmpFrame.size.width = 55;\r\ntmpFrame.size.height = 55;\r\nthumbnail.frame = tmpFrame;\r\nthumbnail.contentMode = UIViewContentModeScaleToFill;\r\n[dialogView addSubview:thumbnail];\r\n\r\nreturn dialogView;\r\n\r\n```\r\nPS. Please help me solve this problem and sorry for my english.\r\n"},"comment":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/comments/140719159","html_url":"https://github.com/rs/SDWebImage/issues/1295#issuecomment-140719159","issue_url":"https://api.github.com/repos/rs/SDWebImage/issues/1295","id":140719159,"user":{"login":"Crementae","id":14299645,"avatar_url":"https://avatars.githubusercontent.com/u/14299645?v=3","gravatar_id":"","url":"https://api.github.com/users/Crementae","html_url":"https://github.com/Crementae","followers_url":"https://api.github.com/users/Crementae/followers","following_url":"https://api.github.com/users/Crementae/following{/other_user}","gists_url":"https://api.github.com/users/Crementae/gists{/gist_id}","starred_url":"https://api.github.com/users/Crementae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crementae/subscriptions","organizations_url":"https://api.github.com/users/Crementae/orgs","repos_url":"https://api.github.com/users/Crementae/repos","events_url":"https://api.github.com/users/Crementae/events{/privacy}","received_events_url":"https://api.github.com/users/Crementae/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T11:53:18Z","updated_at":"2015-09-16T11:53:18Z","body":"@mythodeia thanks for reply, i will upload my project demo later."}}