【问题标题】:How can I add an AdBannerView to a UITabViewController?如何将 AdBannerView 添加到 UITabViewController?
【发布时间】:2014-12-13 04:34:08
【问题描述】:

我已经阅读了 Apple 的文档并引用了他们臭名昭著的 iAdSuite 示例代码。我查看了许多教程和 stackoverflow 帖子,但仍然无法找到解决方案。

在我使用 tabviewcontroller 和 storyboard 的同时,如何防止 iAd 被卸载,同时又符合 Apple 的条款?

我有一个tabBarController,它分成 3 个单独的 UINavigationControllers 和各自的 UIViewControllers。

有没有办法将AdBannerView 添加到UITabBarController?我尝试使用容器视图但没有成功。我该怎么办?

【问题讨论】:

    标签: ios objective-c xcode uitabbarcontroller iad


    【解决方案1】:

    一种解决方案是为视图控制器提供 AdBannerView 和 contentViewController。将 TabBarController 嵌入到 contentViewController 中,然后根据需要调整视图。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多