Created
April 3, 2014 12:28
-
-
Save veeneck/9953391 to your computer and use it in GitHub Desktop.
Sprite Kit performSelector with object
This file contains 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
// Calling a function that has no parameters | |
[self performSelector:@selector(doImageFade) withObject:nil afterDelay:0.1]; | |
// Calling a function that has one parameter. | |
// Notice the ':' after doImageFade and the use of withObject | |
[self performSelector:@selector(doImageFade:) withObject:img afterDelay:0.1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment