在 iPhone 上总是将广告放在前面?
我想在我的 iPhone 应用程序上投放广告。
我使用 TabBar 来分隔一些功能。
这是我的问题。我只想放置一个广告,无论用户选择什么,它都应该始终显示。通过按选项卡栏在视图之间切换。我希望该广告位于标签栏上方。
我不想在每个视图上放置广告,也不想在每次用户更改视图时刷新。
有人可以给我一些想法吗?
谢谢。
I want to put an ad on my iPhone application.
And I'm using TabBar to separate some features.
Here's my question. I just want to put ONE AD which always should be displayed no matter what user select & switch between views by pressing tab-bar. I want that ad right above the tab-bar.
I don't want to put ad on every view nor refreshed every time user changes view.
Can somebody give me some idea??
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 TabBarControllers 视图在某个时刻已添加到应用程序
窗口
。如果通过代码执行此操作,这通常位于您的applicationDidFinishLaunching
方法中,否则通过 Interface Builder 完成。无论哪种方式,如果您想全局添加视图,请在applicationDidFinishLaunching
末尾执行此操作,并将其添加为应用程序window
的子视图,而不是添加到任何单独的视图控制器。只需确保将其添加到选项卡栏控制器之后,否则它将被覆盖。Your TabBarControllers view was added to the application
window
at some point. This is usually in yourapplicationDidFinishLaunching
method if doing it by code, otherwise it is done through Interface Builder. Either way, if you want to add a view globally, do it at the end ofapplicationDidFinishLaunching
and add it as a subview of the applicationwindow
, not to any individual view controller. Just ensure you are adding it after the tab bar controller as otherwise it will be covered up.