cell.imgView.image= [UIImageimageNamed:@""];
NSString*url = dic[@"snapshot_url"];
if(url) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
NSURLRequest*request = [NSURLRequestrequestWithURL:[NSURLURLWithString:url]];
NSData*data = [NSURLConnectionsendSynchronousRequest:requestreturningResponse:nilerror:nil];
dispatch_async(dispatch_get_main_queue(), ^{
if(data) {
cell.imgView.image= [UIImageimageWithData:data];
[cellsetNeedsDisplay];
}
});
});
}