chaining animations
chaining animations
- Subject: chaining animations
- From: Alejandro Marcos Aragón <email@hidden>
- Date: Mon, 21 Jun 2010 16:38:54 -0500
Hi everyone,
Can someone point out what is the standard way to chain animations? I'm trying to animate several UIViews (one after the other) that are container into an NSMutableArray, and at this point I'm just doing something like the following:
- (void) insert {
if ([array count] > 0) {
AnimatedObject *object = [array lastObject];
// register as an observer
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(insert) name:@"ObjectAdded" object:object];
[scrollView addAnimatedObject:object];
[array removeLastObject];
}
}
So the added object posts a notification to the default center when it's done with the animation. This seems to work, but there should be an easier way to accomplish the same thing. Any suggestions? Thank you,
aa
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden