如何添加包含 iAd 横幅视图的子视图?
我有一个带有 3 个视图控制器的选项卡栏,我想在应用程序中实现 iAd。
我一直在搜索,并且读到实现 iAd 的一个好方法是将它们分开创建,就像在另一个 ViewController 中一样,所以这就是我所做的。我有我的 First、Second 和 ThirdViewController 以及 AdBannerController。我得到了 Bees 4 Honey iAd 教程(http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/)并将 iAd 放入此视图控制器(AdBannerController)中。所以,现在我想我必须向每个 ViewController (第一、第二和第三)添加一个子视图,但我不知道如何做。如果您能帮助我,我将非常感激(如果您知道将 iAd 实现到标签栏应用程序的更好方法,也非常感谢!)。
谢谢。
I have a tab bar with 3 view controllers and I want to implement iAds to the app.
I have been searching and I read that a good way to implement the iAds is to create them apart, like in another ViewController, so that's what I did. I have my First, Second and ThirdViewController and an AdBannerController. I got the Bees 4 Honey iAd tutorial (http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/) and put the iAd in this view controller (AdBannerController). So, now I think I have to add a sub view to each ViewController (First, second and third), but I don't know how. I would be really thankful if you can help me (and if you know a better way to implement the iAds to a tabbar app, thanks a lot too!).
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否查看过 Apple iAdSuite 中的 TabbedBanner 项目样本?
Did you check out the TabbedBanner project in the Apple iAdSuite sample?