这是我尝试放入 iAd 的代码,但它不起作用。任何帮助将不胜感激,因为我对使用 Xcode 非常陌生。提前致谢
.m 文件
adView = [[ADBannerView alloc]initWithFrame:CGRectZero];
adView.frame = CGRectOffset(adView.frame, 0, -50);
adView.autoresizingMask = [NSSet setWithObject:**incompatible pointer to integer conversion assigning to 'UIViewAutoresizing' (aka enum UIViewAutoresizing)**
[ADBannerView setAutoresizingMask:UIViewAutoresizingFlexibleWidth]];**no known class for selector 'setAutoresizingMask'**
[self.view addSubview:adView];
adView.delegate=self;
self.bannerIsVisible=NO;
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}