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