1. imageurl
NSURL *url = [NSURL URLWithString:imageUrl];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:20.0];
NSOperationQueue* queeue = [[NSOperationQueue alloc] init];
[NSURLConnection sendAsynchronousRequest:request queue:queeue completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
__block UIImage *image = [UIImage imageWithData:data scale:1];
dispatch_async(dispatch_get_main_queue(), ^{
[UIView animateWithDuration:0.5 animations:^{
self.imageView.image = image;
self.imageView.alpha = 1;
} completion:^(BOOL finished) {
}];
});
}];