title: Loading images in background to optimize the loading in ios
body: <p>I am trying to optimize the load in my application, in fact, I have a lot of images that loaded in my application, and I spend a lot of time waiting for a view controller to open, especially the first initial view which includes a lot of images.</p>
  
  <p>I took a look at <a href="https://developer.apple.com/library/ios/#samplecode/LazyTableImages/Introduction/Intro.html" rel="noreferrer">apple sample</a></p>
  
  <p>but I cannot re-work the whole application, what I want is just to tell me specifically what should I do?, I implement? </p>
  
  <p>in the <code>tableview</code>, where the cell is implemented <code>cellforrowatindexpath:</code></p>
  
  <pre><code> NSURL *imageURL = ......;
   NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
   UIImage *imageLoad;
   imageLoad = [[UIImage alloc] initWithData:imageData];
   imageView.image = imageLoad;
  </code></pre>
  
  <p>could I do something? </p>
  
  <p>thank you for your help!</p>
  
  <p><img src="https://i.stack.imgur.com/jd3pp.png" alt="enter image description here"></p>