UIView animatWithDuration has an optional param for completion, but I need one for update
The whole idea is I need a block that runs on EVERY frame of animation. I figure I can spoof this with a NSInterval, but that just seems hoaky.
Thoughts?
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.
Use CADisplayLink instead. Works just like an NSTimer, but fires exactly once every frame and will be perfectly in sync with the animation.
Here’s how you set one up:
Your animation code
Then when the animation finishes