如何添加包含 iAd 横幅视图的子视图?

发布于 2024-12-25 15:23:10 字数 440 浏览 3 评论 0原文

我有一个带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淑女气质 2025-01-01 15:23:10

您是否查看过 Apple iAdSuite 中的 TabbedBanner 项目样本?

Did you check out the TabbedBanner project in the Apple iAdSuite sample?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文