iPhone:导航控制器上方有图像/广告吗?

发布于 2024-08-21 22:50:44 字数 343 浏览 2 评论 0原文

我们的应用程序目前看起来像这样:

[ Navigation Controller]
[       Content        ]
[  Tab Bar Controller  ]

我们现在想做的是向免费版本添加广告,我们希望将其放在导航控制器之上,如下所示:

[     Advertisment     ]
[ Navigation Controller]
[       Content        ]
[  Tab Bar Controller  ]

所以我想知道这是否可能,如果可以的话,苹果是否会接受App Store?

Our application currently looks like this:

[ Navigation Controller]
[       Content        ]
[  Tab Bar Controller  ]

What we want to do now is to add advertising to the free version, which we would like to put on top of the Navigation Controller, like this:

[     Advertisment     ]
[ Navigation Controller]
[       Content        ]
[  Tab Bar Controller  ]

So I'm wondering if this is possible and if so, if it would be accepted by Apple for the App Store??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

遗心遗梦遗幸福 2024-08-28 22:50:44

我想为我的应用程序做同样的事情。我所做的如下:

在我的窗口中添加 2 个子视图。

  • 一张带广告。
  • 一个带有导航控制器。

这对我有用,并且广告会保留在用户导航的屏幕上。
我在过去几天创建了这个,我将在接下来的几天内将其提交给 Apple。但我看不出他们有任何理由对此有问题。

I wanted to do the same for my application. What I did was the following:

In my window I add 2 subviews.

  • One with the advertisement.
  • One with the navigation controller.

This works for me and the advertisements stay on the screen will the user navigates.
I created this in the last few days and I'm going to submit this to Apple somewhere in the next few days. But I don't see any reason why they could have a problem with this.

命硬 2024-08-28 22:50:44

您可能必须对导航控制器进行子类化。看看这个链接 Apple 的 Nav 文档控制器来了解视图是如何覆盖的。在我看来,子类化或修改导航栏的框架是实现此目的的最好方法。

You would probably have to subclass the navigation controller. Have a look at this link Apple's Docs on Nav Controller to understand how the view is overlayed. Subclassing or modifying the frame of the nav bar is the neatest way to accomplish this in my opinion.

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