iPhone Wait For Animation Ending
Posted
by paul simmons
on Stack Overflow
See other posts from Stack Overflow
or by paul simmons
Published on 2010-04-28T00:54:37Z
Indexed on
2010/04/28
1:33 UTC
Read the original article
Hit count: 213
iphone-sdk
Hi,
In an iPhone application, I try to catch animation endings using setAnimationDidStopSelector. I try to suspend code execution until animation ends. I have tried this; set a global BOOL variable, set it to TRUE before commiting animation and after commiting animations waited using a while loop. In the setAnimationDidStopSelector, set the BOOL variable to FALSE and hope while loop to break. But unluckily this did not work, the code did not even fall into setAnimationDidStopSelector (I check that with some trace outputs).
What do you suggest?
© Stack Overflow or respective owner