问题
I'm looking for sample code or tutorials on how to implement iAds in my iPhone application. Can anyone guide me to any resources about this?
回答1:
The iAd Programming Guide has detailed information on implementation.
回答2:
In Interface Builder just drag and drop your ad into the window. In Xcode, right click on your frameworks folder and add the iAd.framework. It's really that simple.
For more advanced things, like hiding and rotating ads, you could start with the WWDC session videos if you're a registered developer. If you're not, get an account because it's a very nice program and you need it to get your apps published.
The session 112 video is a step-by-step, I used it to get my own iAds running, but otherwise try this link iAds. You still need a developer account.
来源:https://stackoverflow.com/questions/3115920/are-there-any-examples-for-how-to-integrate-iads-into-an-application