iPhone:导航控制器上方有图像/广告吗?
我们的应用程序目前看起来像这样:
[ 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想为我的应用程序做同样的事情。我所做的如下:
在我的窗口中添加 2 个子视图。
这对我有用,并且广告会保留在用户导航的屏幕上。
我在过去几天创建了这个,我将在接下来的几天内将其提交给 Apple。但我看不出他们有任何理由对此有问题。
I wanted to do the same for my application. What I did was the following:
In my window I add 2 subviews.
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.
您可能必须对导航控制器进行子类化。看看这个链接 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.