ios - How to animate an array of UIViews with a completion block being called after all UIViews finished animating? -
I am animating every UIView in an array and want to know when all animations will end. For example: I'm showing 10 UIViews on a View Controller with simple visual animation and a slight delay for each UIView. After all 10 animation ends, I would like to make another animation in the integer block.
How do I know when all the animations will end?
If your UIView
s is delayed gradually, the last The queue will be the last to end you. Just do the block to complete your content.
Alternatively, you can do something like this:
__ block integer ended view = 0; [UIView Chet.Verticality: ... Completion: ^ (BOOL Finish) {If (++ Ended Views == NumberOffview) {// do stuff}}];
Comments
Post a Comment