Closed gerchicov-bp closed 8 years ago
@gerchicov-bp Sorry for the late response. You say the animation sequences may be performed in the wrong order. Why not simply make sure your sequences are invoked in the correct order, or is this not possible for some reason?
My current solution (and it seems it works) is to add a BOOL
variable which is set to YES
when the "cancel animation" is started. So before the second part of the complex animation I just check if it is set to YES
.
But this feature could be embedded into library
In my case I have 2 sequential animations I need to perform sequentially (let I'll call them
A1
,A2
). And I also have a possibility to revert them back (A3
).The problem is
A3
should revert all the changes back but all these animations may be performed in the incorrect sequence:A1
,A3
,A2
. So it is not enough to simply call additional animation with optionUIViewAnimationOptionBeginFromCurrentState
.Could you suggest how to solve such issue?