I have a simple for loop which changes the images in a set of 9 UIImageViews. However, I have one problem, I can't change the name of the UIImageView in co-ordination of the for loop and so the end result is that the for loop ONLY affects 1 out of 9 UIImageViews I have in my iOS App.
Here is my code:
for (current_photo = 1; current_photo < 10; current_photo++) {
picview_1.image = [UIImage imageNamed:[NSString stringWithFormat:@"%@%i.png", SERVER_URL, current_photo]];
}
You will notice that in my code there is a bit:
picview_1.image
When I replace the "pic view_1" which "picview_current_photo", it comes up with errors.
What am I doing wrong? Please explain.
Thanks for your time :)