我想将 Applovin SDK 集成到我的 Cocos2d-x iOS 应用程序中,但委托不起作用。
[ALInterstitialAd shared].adDisplayDelegate = self; << Error: Use of undeclared identifier 'self'
[ALInterstitialAd showOver:[[UIApplication sharedApplication] keyWindow]];
或者
objClass *obj1 = [objClass alloc];
[ALInterstitialAd shared].adDisplayDelegate = obj1; << Error: assigning 'id<ALAdDisplayDelegate>' from incompatibile type "objClass *"
或者
init: objClass* obj1 = [[objClass alloc] init];
[ALInterstitialAd shared].adDisplayDelegate = obj1; << Error: assigning 'id<ALAdDisplayDelegate>' from incompatibile type "objClass *"
如何解决这个问题?我想捕获那些侦听器事件。