iAdの使用。警告がほとんど表示されません。以下は私がAppDelegate.mに入れたコードです
何が欠けている?
警告はコード行の終わりで示されます
-(void)onEnter
{
[super onEnter]; //<-- NSObject may not respond to this
adView = [[ADBannerView alloc]initWithFrame:CGRectZero];
adView.delegate = self;
adView.requiredContentSizeIdentifiers = [NSSet setWithObjects: ADBannerContentSizeIdentifierLandscape, ADBannerContentSizeIdentifierLandscape, nil];
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
[[[CCDirector sharedDirector] openGLView] addSubview:adView];
adView.hidden = YES;
}
-(void)onExit
{
adView.delegate = nil;
[adView removeFromSuperview];
[adView release];
adView = nil;
[super onExit]; //<-- NSObject may not respond to this
}
-(void)bannerViewActionDidFinish :(ADBannerView *)banner
{
NSLog(@"bannerViewActionDidFinish called");
[[UIApplication sharedApplication] setStatusBarOrientation :(UIInterfaceOrientation)[[CCDirector sharedDirector] deviceOrientation]];
}
//<-- Instance method deviceOrientation not found (return type defaults to id)
なにが問題ですか?継承するクラスがありませんか?