title: Loading images one by one
body: <p>I want to load images one by one not all together.In the following code imagedata is the array containing urls from which i need to load images. Here is my code but no success.</p>
  
  <pre><code>-(void)loadSingleImage:(int)buttonTag
  
  {
  
      UIButton *buttonImage =(UIButton *) [self.view viewWithTag:buttonTag];
      NSData *imagesubCategoryData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:[imageData objectAtIndex:buttonTag-30]]];
      [buttonImage setImage:[UIImage imageWithData:imagesubCategoryData] forState:UIControlStateNormal];
  }
  -(void)loadImageData
  
  {
  
      for(int i=0;i&lt;[imageData count];i++)
      {
          [self loadSingleImage:i+30];
          sleep(0.1);
      }
  
  }
  </code></pre>