I have two animation methods, basically the just repeat... How do I prevent them from overlapping and flickering, is there a convenient way to do this?
Thanks,
-(void) doPowerChangeAnimUp
{
powerIconChange .alpha = 0;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDidStopSelector:@selector(animationDidStop:)];
[UIView setAnimationDelegate:self] ;
[UIView setAnimationDuration:2];
[powerIconChange setAlpha:1];
[UIView commitAnimations];
}
-(void)animationDidStop:(NSString *)animationID
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self] ;
[UIView setAnimationDidStopSelector:@selector(doPowerChangeAnimUp)];
[UIView setAnimationDuration:2];
[powerIconChange setAlpha:0];
[UIView commitAnimations];
}