在 iPhone 项目中实施 AdWhirl 的最佳方式

发布于 2024-11-19 20:09:08 字数 162 浏览 3 评论 0原文

在 iPhone 项目中实施 AdWhirl 的最佳方法是什么?
- 我们将创建一个单例对象来处理 AdWhirl 并在整个应用程序中使用它。
- 或者我们是否会在要添加 AdWhirl 的每个屏幕 (UIViewController) 中创建每个 AdWhirl 对象。

谢谢

What is the best way to implement AdWhirl in iPhone project?
- Will we create a singleton object for handling AdWhirl and use it through out the app.
- Or will we create each AdWhirl object in every screen (UIViewController) we want to add AdWhirl in.

Thank you

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

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

发布评论

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

评论(2

吃颗糖壮壮胆 2024-11-26 20:09:08

除非您希望在每个视图控制器中都有不同的广告,否则您应该使用 singleton,并在每次进入新的 UIViewController 时添加广告 UIView。

我不记得 adWhirl 是否为您提供了它,但如果没有,您应该以动画方式显示广告视图,以防没有可用的广告。

Unless you want a different ad in every view controller you have, you should use a singelton, and add the ad UIView each time you're entering a new UIViewController.

I can't recall if adWhirl provide it for you, but if not, you should animate the ad View out in case no ads are available.

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