Hello,
i have a following problem: I have several UIImageViews in my app. I'd like to be able to move them in a loop. My question is how to modify them one by one without having to do the same thing for every instance of the UIImageView?
I tried to put them all into a NSMutableArray. Now i can go through the entire array with a simple FOR loop. But how to modify each UIImageView in the array?
Code for moving the UIImageView looks like this:
Would anyone be so helpful and show me how the code inside the for loop would look like?
thanks
peter
i have a following problem: I have several UIImageViews in my app. I'd like to be able to move them in a loop. My question is how to modify them one by one without having to do the same thing for every instance of the UIImageView?
I tried to put them all into a NSMutableArray. Now i can go through the entire array with a simple FOR loop. But how to modify each UIImageView in the array?
Code for moving the UIImageView looks like this:
Code:
CGRect f = imageView.frame;
f.origin.x += xDelta;
f.origin.y += yDelta;
imageView.frame = f;
thanks
peter