Hi Guys,
I have this two frame animation running in a UIView:
It swaps frames every second forever fine.
Is there a way that I can later tell which frame is currently being shown?
I don't want, or need to interrupt it.
Any help appreciated
Cheers, Art.
I have this two frame animation running in a UIView:
Code:
NSArray *animationFrames = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Frame1.PNG"],
[UIImage imageNamed:@"Frame2.PNG"],
nil];
myImageView = [[UIImageView alloc] init];
myImageView.animationImages = animationFrames;
myImageView.bounds = CGRectMake(0, 0, 50, 50);
myImageView.animationDuration = 1.0;
myImageView.animationRepeatCount = 0;
[myImageView startAnimating];
It swaps frames every second forever fine.
Is there a way that I can later tell which frame is currently being shown?
I don't want, or need to interrupt it.
Any help appreciated
Cheers, Art.
Last edited: