No need to introduce a dependency to a whole framework such as ASIHTTPRequest
just to download one image, when you can do it a few easy lines of code using GCD:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSData *imageDate = [NSData dataWithContentsOfURL:imageURL];
UIImage *image = [UIImage imageWithData:imageData];
dispatch_async(dispatch_get_main_queue(), ^{
avatar.image = image;
});
});
This is asynchronous and all the goodness. But in a few lines of code you can write, understand, bug-fix, extend and maintain yourself.
But in case you are bent on using ASIHTTPRequest
I suggest using this excellent project Here is a sample code to have a guide line and a brief description.
One other way is that you can use the asynchronous image view instead of the default image view. check tutorial Here and also How? UITableViewCell with UIImageView asynchronously loaded via ASINetworkQueue