我正在开发iPhone应用程序。因为我想使用chartboost。我对这个概念还很陌生,所以我使用了该网站中给出的代码,但它仍然不起作用。我在appdelegate.m文件中使用了上面的代码。并添加了SystemConfiguration.framework和QuartzCore.framework。还有什么我需要做的吗?
#import "Chartboost.h"
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Configure ChartBoost
ChartBoost *cb = [ChartBoost sharedChartBoost]; cb.appId = @"APP_ID";
cb.appSignature = @"APP_SIGNATURE";
// Notify the beginning of a user session
[cb startSession];
// Show an interstitial
[cb showInterstitial]; }
发布于 2012-07-10 17:39:06
我也面临着同样的问题,解决方案是我们需要在图表中创建测试活动。here
发布于 2012-10-31 15:27:50
初始化Chartboost方法的实现
- (void) initChartboost {
Chartboost *cb = [Chartboost sharedChartboost];
// Add your own app id & signature. These can be found on App Edit page for your app in the Chartboost dashboard
cb.appId = @"YOUR APP ID FROM CB";
cb.appSignature = @"APP SIGNATURE";
// Begin a user session. This should be done once per boot
[cb startSession];
// Cache an interstitial at the default location
[cb cacheInterstitial];
// Cache the more apps page so it's ready & loaded
[cb cacheMoreApps];
}
还请注意,您将正确地看到模拟器上的间隙,但要在设备上看到它们,您必须将设备UDID添加到Chartboost中,如here. 所述
https://stackoverflow.com/questions/10929099
复制相似问题