Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-15-2010, 07:22 PM   #1 (permalink)
sle39lvr
Registered Member
 
Join Date: Jan 2009
Posts: 213
sle39lvr is on a distinguished road
Default Consecutive Animations

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.
sle39lvr is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,540
Threads: 94,059
Posts: 402,669
Top Poster: BrianSlick (7,988)
Welcome to our newest member, duke22
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:50 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.