Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 3, 2014 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veeneck/9953391 to your computer and use it in GitHub Desktop.
Save veeneck/9953391 to your computer and use it in GitHub Desktop.
Sprite Kit performSelector with object
// 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