title: Cache NSData(with UIImages)
body: <p>Currently, I'm working on the client for the website. I have tonne of images that I need to load to my TableView. Here is what I'm currectly doing:</p>
  
  <pre><code>NSDictionary *propertyItems = [self.items objectAtIndex:indexPath.row];
      cell.fio.font = [UIFont boldSystemFontOfSize:17.0f];
  
      if([propertyItems objectForKey:@"online"] == [NSNumber numberWithInt:1])
          cell.fio.textColor = [UIColor colorWithRed:0.3 green:0.6 blue:0.3 alpha:1.0];
  
      dispatch_queue_t downloadPhotosQueue = dispatch_queue_create("downloadPhotosQeue", NULL);
      dispatch_async(downloadPhotosQueue, ^{
          NSData *photosData = [NSData dataWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://www.example.com/%@", [propertyItems objectForKey:@"photo_trumb"]]]];
          dispatch_async(dispatch_get_main_queue(), ^{
              cell.pic.image = [UIImage imageWithData:photosData];
          });
  
      });
  
      cell.fio.text = [propertyItems objectForKey:@"fio"];
  </code></pre>
  
  <p>I'm doing this in <strong>cellForRowAtIndexPath:</strong> method.
  Everything is loading fast. But the problem is, when I'm scrolling my table down, and after again up, the images are reloading over and over again.</p>
  
  <p><strong>Question:</strong> Is there any way to easily cache my UIImages that I'm getting from the server? So if they are loaded once, they wouldn't reload over and over again, while I'm running the app. Maybe I'm doing something wrong?</p>
  
  <p>Thanks in advance!</p>