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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.