iphone - Why does animationDidStart: not work? -
Triangle to inform me when the animation is up and running, so my code is:
[UIView Set Delegate Animation: self]; [UIView Set AnimationDedstopSchil: @Selector (AnimationDidtop: Ended :)); [UIView Set AnimationVirstreet Selector: @Selector (AnimationDidStart :)];
I apply these 2 methods, but the animation_desktop: end:
was notified, and animationAdstart:
was not.
This is my implementation:
- (zero) animation add desktop: (animation) * Anime ends: (BOOL) flag {} - (zero) animationDadStart: ( Cannimation *) Animation {}
When I tried to call the animation animationEditart:
or then the edition ended:
directly, mine The app crashed and reported that the selector could not be found. But according to the following lines in CAAnimation.h, if I import the Quasak Framework, then all the examples of NSObject should respond to these 2 methods. Is my understanding correct?
/ * Representative method for animation * / @ NSObject (CAAnimationDelegate) / * When the animation begins its active period. * / - (zero) animationDidStart: (caanimation *) anime; / * When the animation either completes its active period or * is removed from the object which is connected to it (i.e. layer) The 'flag' * is true if the animation is without reaching the end of its active period without removing *. * / - (zero) Animation: DIDStop: (Animation *) Anime expired: (BOOL) flag; UIView
according to the documentation
= "post-text" itemprop = "text"> > Set Animation Destination Selector: A selector from the message is expected to sign a code like + (zero) permissions: (NSString *) Animation ID reference: (Zero *) Reference
. The selector you provide has an incorrect signature and will not be called. For the NSObject CAAnimationDelegate
category is not also a document, so you probably have to know what you are doing though your problem is the wrong selector signature.
Comments
Post a Comment