title: Xcode: UIImageView Image Not Updating
body: <p>I'm trying to display 34 consecutive images in a UIImageView container when a button is pressed.</p>
  
  <pre><code>- (IBAction)buttonPressed {
      [self updateUI:(0)];
  }
  
  -(void)updateUI:(int)yesser{
  
      //if GO is pressed
  
          //display 34 images MG_8842.PNG -&gt; MG_8875.PNG stored in Supporting Files
          for(int j = 0;j&lt;34;j++){
              NSString *newPhoto =[NSString stringWithFormat:@"MG_88%i.PNG",42+j];
              NSLog(@"%@",newPhoto);
              sleep(1);
              [self setNextImage:newPhoto];
          }
  }
  
  -(void)setNextImage:(NSString*)nextImage{
  
      [ball performSelectorOnMainThread:@selector(setImage:) withObject: [UIImage imageNamed:nextImage] waitUntilDone:YES];
  
  }
  </code></pre>
  
  <p>However, images are not updating. When all the code finishes and returns, the first image is displayed.</p>
  
  <p>I've tried the following:<br>
  1) Product > Clean<br>
  2) Reinstalled app.<br>
  3) Checked all case sensitivity.<br>
  4) Tested number of methods for setting UIImageView images.<br>
  5) Checked if 34 static NSString values worked instead of changing one NSString each time<br>
  6) Removed and re-added images to supporting files folder.<br>
  7) Renamed all images and updated code to match.<br>
  8) Turned AutoLayout off.<br></p>
  
  <p>Any help would be GREATLY appreciated.</p>
  
  <p>Thanks,
  Rob</p>