Alex Rivera | Logout

How can I delay a method call for 1 second?

Asked 2009-05-28T12:51:46.033
171

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.

Edit
Report

1 Answer

16

You can use the perform selector for after the 0.1 sec delay method is call for that following code to do this.

[self performSelector:@selector(InsertView)  withObject:nil afterDelay:0.1]; 
answered 2011-10-03T12:10:53.363

Your Answer