开发者

Can't add iAd delegate to ViewController

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜