Store image in cache Objective c
<p>In UITableviewcell I have many Image view which will load the image from url</p>

<p>I want to store the image in cache so that when I scroll again it should not load from url</p>

<p>My Code is</p>

<pre><code>UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
                [indicator startAnimating];
                [indicator setCenter:cell.image_VW.center];
                [cell.contentView addSubview:indicator];
NSString *url_STR = [NSString stringWithFormat:@"%@news/%@",IMAGE_URL,[tmp_NEWS valueForKey:@"image"]];              
NSString *url_STR = [NSString stringWithFormat:@"%@news/%@",IMAGE_URL,[tmp_NEWS valueForKey:@"image"]];                  
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
   //retrive image on global queue
   UIImage * img = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:url_STR]]];
   dispatch_async(dispatch_get_main_queue(), ^{
                     [indicator removeFromSuperview];
   NEWS_BIG_CELL * cell = (NEWS_BIG_CELL *)[self.tbl_CONTENTS cellForRowAtIndexPath:indexPath];
   //assign cell image on main thread
   //cell.image_VW.contentMode = UIViewContentModeScaleAspectFit;
            cell.image_VW.image = img;
   });
});
</code></pre>