Bernardo O
Bernardo O

Reputation: 828

Can't add iAd delegate to ViewController

I'm trying to add iAd into my project. I'm following this tutorial http://bees4honey.com/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?

Upvotes: 1

Views: 429

Answers (1)

fabian789
fabian789

Reputation: 8412

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

Upvotes: 3

Related Questions