iPhone: CATransition done (get the key?)
iPhone: CATransition done (get the key?)
- Subject: iPhone: CATransition done (get the key?)
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 13 Jan 2010 09:44:55 -0500
Currently I am using CATransition to display a subview:
[window addSubview:monthView.view];
CATransition *animation = [CATransition animation];
[animation setDuration:0.25];
*[animation setDelegate:self];*
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[monthView.view layer] addAnimation:animation forKey:@"fadeIn"];
So that delegate opens up a callback for animationDidStop:
- (void)animationDidStop:(CAAnimation *)theAnimation finished: (BOOL)flag {
However I also have a method to dismiss a subView using CATransition - and
the same callback is called. How can I determine what the *key* is in the
animationDidStop? I basically just need to determine in what context the
animationDidStop is being called.
Thanks for any pointers. Continuing to Google.
Eric
_______________________________________________
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