I am trying to fade an image in and out for 6 seconds, so there would be 3 fade outs, and 3 fade ins, one second long each. I have tried the following, but it does not work:
Code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 1.0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 0.0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 1.0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 0.0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 1.0;
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
venomTitle.alpha = 0.0;
[UIView commitAnimations];
Is there a method of doing this? I am using UIImageView.