Tag Archive for ‘Animations’
Quick Code: performSelector:withObject:afterDelay:
Awesome little bit of code here. Any time you want a bit of code to run in the future, you can schedule it to run after a number of seconds delay. For this you use performSelector:withObject:afterDelay:. It really works just as simple as it looks. Here’s a quick example: [mySprite performSelector:@selector(setVisible:) withObject:[NSNumber numberWithBool:YES] afterDelay:2.0f]; This
Continue reading »

Recent Comments