I have a recursive UIView animatewith duration: delegate to run an animation. When the view disappears I”m supposed to stop this animation. [self.view.layer removeAllAnimation] doesn’t seem to help. ANy other means to stop animation?
I have a recursive UIView animatewith duration: delegate to run an animation. When the
Share
What about using the method [UIView animateWithDuration:animations:completion:] ?
You can check inside the completion block if the view has disappeared. If it hasn’t – run one more animation iteration.