I wrote some code for flipping a coin and I used 24 images to simulate the coin flipping 2 times then it shows a coin. heres the problem, I use a timer to call the updated image at an interval of 0.01 but the pp kept crashing at random times. I removed the 'animation' and now it seems stable.
is there a way to animate the coinflip that is jesusPhone friendly?
Put the images into an array, then have your UIImageView animate the array. It has functionality for that. You can set the animation duration etc.
Or is that what you already did and it was crashing?
put the images into an array, thanks Ill look around for that. Ive found tutorial on animations but they were variations on what I needed. any exmples you can thik of?
cheers ill try it and just for those who also see this, the top of the code was truncated:
coin1 = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"coin1" ofType:@"png"]];
coin2 = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"coin2" ofType:@"png"]];
coin3 = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"coin3" ofType:@"png"]];