You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking @ the source and I haven't seen an obvious way to stop/kill a running tween yet. I'll keep looking but something like this should be available.
The text was updated successfully, but these errors were encountered:
Simple: add an -invalidate method to the PRTweenOperation object, and in the large animation processing loop fired by the timer, check if the invalidation flag is set.
You can do [[PRTween sharedInstance] removeTweenOperation:tweenOperation]; - the only problem is that it won't remove the tween until the following loop.
I have branched the code and updated it slightly so that a tween can be invalidated instantly, with the option of sending a final block/selector with the completed value. I will create a pull request shortly.
I've been looking @ the source and I haven't seen an obvious way to stop/kill a running tween yet. I'll keep looking but something like this should be available.
The text was updated successfully, but these errors were encountered: