How can I delay a method call for 1 second?

Thanks picture Thanks · May 28, 2009 · Viewed 170.2k times · Source

Is there an easy way delay a method call for 1 second?

I have a UIImageView that reacts on a touch event. When the touch is detected, some animations happen in the app. After one second, I want to call another method. In this case, I can't use the animationDidStop selector.

Answer

Jim picture Jim · May 28, 2009
performSelector:withObject:afterDelay:

Document Reference