I am pushing a new scene & then poping back to the previous one, now I want to know whenever I come back because I need to reset a few things.
I was wondering is there a viewWillAppear equivalent of UIKit in Cocos-2D to check this scene is about to appear or something.
You can use the onEnterTransitionDidFinish
callback to achieve this. You can find the documentation here: cocos2d 1.0 API
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.