The whole point of setAnimationDidStopSelector: is that you tell the system to invoke your own method when the animation is complete. So, if you are going to pass in this selector, you need to define this method yourself in your class:
- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
Please note that the documentation for setAnimationDidStopSelector: states that you should use a selector of this form, but in fact you can also use a shorter version, such as a crazy dog. But itβs better to study the animation attribute, context, and other elements.
You need to add a method to any class the code is in, because you pass yourself as an animation delegate.
For some reason, they probably also have an internal UIView method with the same name, so you are accused of using an undocumented API.
source share