我已根据 Chartboost 文档完成所有步骤,将 iOS SDK 集成到我的应用程序中。但在调用 Chartboost 的最后阶段出现编译错误:
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Begin a user session. Must not be dependent on user actions or any prior network requests.
// Must be called every time your app becomes active.
[Chartboost startWithAppId:@"some_id" appSignature:@"some_signature" delegate:self];
// Show an ad at location "CBLocationHomeScreen"
[[Chartboost sharedChartboost] showInterstitial:CBLocationHomeScreen];
在调用startWithAppId
方法时,我收到以下错误:
......../proj.ios_mac/ios/AppController.mm:101:126: Cannot initialize a parameter of type 'id<ChartboostDelegate>' with an lvalue of type 'AppController *'