Thursday, January 07, 2010

iPhone dev Stupidity 120: Assoc view and it's animation

1. associate view to the animation:

[group setValue:viewForAnimation forKey: kTrashItemAnimation];


2. associate animation to the view:

[viewForAnimation.layer addAnimation:group forKey:@"savingAnimation"];


later in the animation did stop callback, we can get the view from the animation ended to do more works based on different views.

No comments: