title: XCode - Convert array element to string
body: <p>I'm trying to get the elements of an <code>NSMutableArray</code>, convert them to strings which are names of <code>UIImageViews</code> and change all the images to one image. I'm using this <code>for</code> loop:</p>
  
  <pre><code>for (int i = 0; i &lt; [self.array count]; i++)
      NSString *currentelement = [self.array objectAtIndex:i]
      [UIImageView * theImageView = [self valueForKey:currentelement]
      [theImageView setImage:newimage];
  </code></pre>
  
  <p>but it gives me an error on the second line: <strong>Expected expression</strong>  Any Ideas why?</p>