In my app I have an array of image views. I want to move each image in the array up the screen by one pixel at a time. Here's is the code for how I'm trying to do it:
All of the image views were created and added to my super view in viewDidLoad. However when the program starts all the images are just stationary and never move.
Code:
for (int a=0;a<54;a++) {
UIImageView *platform = [platformArray objectAtIndex:a];
platform.center = CGPointMake(platform.center.x,platform.center.y-1);
[platformArray replaceObjectAtIndex:a withObject:platform]; // Not really sure if this is necessary...
[platform release];
}