【发布时间】:2014-11-11 23:04:03
【问题描述】:
我正在尝试在我的 SKScene 中添加 Applovin 代表。当我添加 AlAdLoadDelegate 作为委托,xcode 向我显示此错误
类型“GameScene”不符合协议“ALAdLoadDelegate”
所以我想我必须手动添加一个协议。但我不知道怎么做 快速转换它
@protocol ALAdLoadDelegate <NSObject>
-(void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad;
-(void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code;
@end
这就是我在我的 SKScene 中添加 AlAdLoadDelegate 的方式...
class GameScene: SKScene, GKGameCenterControllerDelegate,SKPhysicsContactDelegate, ALAdLoadDelegate {
.... My code
}
谁能帮我在 ios8 中集成 Applovin 或告诉我如何解决这些问题?
【问题讨论】: