Currently I have this code that works fine
[UIView setAnimationDidStopSelector:@selector(animationDone:finished:context:)];
- (void)animationDone:(NSString *)animationID finished:(BOOL)finished context:(void *)context {
// do stuff here
}
Logging the value of animationID gives me a null.
How can I pass value to the @selector?
I tried
[UIView setAnimationDidStopSelector:@selector(animationDone:@"animation1"finished:context:)];
That gives me an error.
Thanks,
Tee
The string passed to the selector is the one you use in this method call:
Afterwards, you can do this: