Hello SDK Guru's
I asked this on the regular board but I didnt have much luck.
I currently have this code, it makes an image appears while rotating. It works fine.
Code:
myImage.alpha = 0;;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2];
[UIView setAnimationDelay:0];
[UIView setAnimationRepeatAutoreverses:NO];
myImage.alpha = 1;
my.transform = CGAffineTransformMakeRotation(-(3.14/2));
[UIView commitAnimations];
I want this to work right after above animation finishes. It reverses whats above, but with a different speed.
Code:
myImage.alpha = 1;
myImage.transform = CGAffineTransformMakeRotation(0);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.2];
[UIView setAnimationDelay:0];
[UIView setAnimationRepeatAutoreverses:NO];
myImage.alpha = 0;
my.transform = CGAffineTransformMakeRotation(0);
[UIView commitAnimations];
When I combine the two, it just executes the second effect ignoring the first. How would I have both running with a small delay in-between?
I already put delay of 2 for second animation set as suggested on the other board, but nothing seemed to work yet.
Thank you in advance.