1

A name is associated with a CAAnimation:

[self.layer addAnimation:animation forKey:@"name"];

How can I associate a name with animations initiated using UIView -animateWithDuration: ? I would like to do this so I can cancel this animation only, hopefully by calling

[self.layer removeAnimationForKey:@"name"];
Morrowless
  • 6,856
  • 11
  • 51
  • 81
  • 1
    can't. To cancel UIView block based animation: http://stackoverflow.com/questions/7967425/how-to-cancel-uiviews-block-based-animation?rq=1 – maroux May 02 '13 at 10:02

0 Answers0