Created
September 23, 2010 07:17
-
-
Save samchandra/593271 to your computer and use it in GitHub Desktop.
Performing a method after delaying it for a few seconds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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