現在、LeadBolt インタースティシャル広告を iOS アプリに実装しています。ただし、この行の最後に:
[[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleModuleFail) name:@"onModuleFailed" object:@"AppFireworksNotification"]];
「予期される識別子」エラーが発生します。これを解決する方法についてアドバイスをお願いします。
-(void)loadDisplayAd
{
LeadboltOverlay *interstitial = [LeadboltOverlay createAdWithSectionid:@"YOUR_LB_INTERSTITIAL_ID" view:self.view];
[interstitial loadAd];
}
- (void)viewDidLoad {
LeadboltOverlay *audioad = [LeadboltOverlay createAdWithSectionid:@"YOUR_LB_AUDIO_ID" view:self.view];
[audioad loadAudioAd];
// [AppTracker setLandscapeMode:YES]; // Un-comment for Landscape mode
[[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleModuleFail) name:@"onModuleFailed" object:@"AppFireworksNotification"]];
[AppTracker startSession:@"APPFIREWORKS_API_KEY" view:self.view];
[self loadDisplayAd];