Objective c iAd通知*const_uuustrong';参数
我正在我的应用程序上引入iAd,就像以前一样,但现在,当adView.delegate=self时,会显示一个通知。为什么?代码似乎总是带有属性和synthezise,并且运行正常。通知显示:“正在将'ViewController*const______________________________。多谢各位Objective c iAd通知*const_uuustrong';参数,objective-c,ios,xcode,cocoa-touch,iad,Objective C,Ios,Xcode,Cocoa Touch,Iad,我正在我的应用程序上引入iAd,就像以前一样,但现在,当adView.delegate=self时,会显示一个通知。为什么?代码似乎总是带有属性和synthezise,并且运行正常。通知显示:“正在将'ViewController*const______________________________。多谢各位 - (void)viewDidLoad { //iAd adView =[[ADBannerView alloc] initWithFrame:CGRectZer
- (void)viewDidLoad
{
//iAd
adView =[[ADBannerView alloc] initWithFrame:CGRectZero];
adView.requiredContentSizeIdentifiers = [NSSet setWithObjects: ADBannerContentSizeIdentifierPortrait, ADBannerContentSizeIdentifierLandscape, nil];
adView.delegate = self;
[self.view addSubview:adView];
[super viewDidLoad];
}
验证ViewDelegate是否符合协议
ADBannerViewDelegate
:
@interface ViewController : UIViewController <ADBannerViewDelegate>
//...
@end
@界面ViewController:UIViewController
//...
@结束
验证ViewDelegate是否符合协议ADBannerViewDelegate:
@interface ViewController : UIViewController <ADBannerViewDelegate>
//...
@end
@界面ViewController:UIViewController
//...
@结束