Friday, February 17, 2012

Cocos2d viewDidLoad

What is the equivalent method to viewDidLoad in cocos2d you ask?  You want to run some things when your CCLayer is loaded and when it exits?  You can either look CCLayer.m or you can just read the stack overflow post below:


viewDidLoad
onEnter
onEnterTransitionDidFinish

viewDidUnload
onExit


http://stackoverflow.com/questions/6119332/cocos2d-popscene-event

No comments:

Post a Comment