Cocos2d V3 iOS - How to access runningScene from App Delegate
问题 I’m wanting to access my running scene in the App Delegate. The problem is, [[CCDirector sharedDirector] runningScene] returns a CCScene object, rather than the actual class of my scene MyMainScene . If I try to call any of my custom methods, I get: -[CCScene customMethod]: unrecognized selector sent to instance 0x156bedc0 I’ve tried casting like this CCScene *scene = [[CCDirector sharedDirector] runningScene]; MyMainScene *mainScene = (MyMainScene*)scene; [mainScene customMethod]; But this