开发者

Can't add iAd delegate to ViewController

开发者 https://www.devze.com 2023-01-29 12:47 出处:网络
I\'m trying to add iAd into my project. I\'m following this tutorial http://bees4honey.com开发者_Go百科/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/

I'm trying to add iAd into my project. I'm following this tutorial http://bees4honey.com开发者_Go百科/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/

I just added the iAd.framework package to my project and set it as Weak. I added #import <iAd/iAd.h> into my .h file but whenever I try to add the ADBannerViewDelegate it doesn't show up in the intellisense, which means it's not accessible to me.

Same thing for ADBannerView class and the delegate methods (in case I add the delegate anyway).

Any ideas?


Restart XCode and set your target to "Device". The framework might not show up on intellisense but should work nevertheless.

0

精彩评论

暂无评论...
验证码 换一张
取 消