Skip to content

Instantly share code, notes, and snippets.

@samchandra
Created September 23, 2010 07:17
Show Gist options
  • Save samchandra/593271 to your computer and use it in GitHub Desktop.
Save samchandra/593271 to your computer and use it in GitHub Desktop.
Performing a method after delaying it for a few seconds
// Invoking a method after a certain amount of time has passed
// This is useful to remove UIAlertView or to perform any other
// delayed operation
[self performSelector:@selector(methodToPerform) withObject:nil afterDelay:2.0f];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment