I just placed the animation arrays at the beginning of the method definition that way I can just reuse flip_to_white/black throughout the method.
To cause different images to flip I've done this.
Code:
UIImageView *imageFlipped = image0;
if(A[i] == 1) {
imageFlipped.animationImages = flip_to_white;
I got this working and it will cause image0 to flip. Is there a way to define imageFlipped with different images in a loop? Something along the lines of....
Code:
for(i=0;i < 4;i++){
x = A[i];
UIImageView *imageFlipped = image<x>;
if(A[i] == 1) {
imageFlipped.animationImages = flip_to_white;
..... }
}
Where A[i] is an array containing the image values that I want flipped.