Reputation: 2827
I'm animating a Bar (change the height) with UIView animation block
[UIView animateWithDuration:(NSTimeInterval) animations:^(void)animations]
but now i want to show the Value of the height on a label in realtime. Is there a way to do it?
Upvotes: 0
Views: 216
Reputation: 16719
You don't have access to the intermediate states of the view during animation. There are only two of them: the starting state and the ending state. As the workaround you can use NSTimer and interpolate the height (as some temporary value) and display it simultaneously with your animation.
Upvotes: 1