在多个屏幕上播放iAd [英] Taking an iAd across multiple screens

查看:88
本文介绍了在多个屏幕上播放iAd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确信有一个简单的答案,但它现在开始烦我了!

I'm sure there's a simple answer to this but it's beginning to annoy me now!

我的iAd集成到我的应用程序中,它出现并且可以在我已经实现了它。该应用程序使用NavigationController在多个屏幕之间移动,但iAd只在其中一个屏幕上。通过我的应用程序从头到尾多次移动后,我在GDB中显示一条消息:

I have an iAd integrated into my app which appears and works on the screen I've implemented it in. The app uses a NavigationController to move between multiple screens, but the iAd is only on one of them. After moving from start to finish through my app several times I get a message appear in GDB saying:

活动横幅太多(11)。新横幅的制作将受到限制。

然后应用程序崩溃。

我已经尝试查看Apple文档并在Google上搜索,但无法找到问题的解决方案。

I have tried looking through the Apple documentation and searched on Google and can't see a solution to the problem.

如果有人知道如何解决问题呢肯定会阻止我发疯!谢谢。

If anyone has any idea how I can resolve the issue it would definitely stop me from going mad! Thanks.

推荐答案

听起来你不是在隐藏视图时删除你的iAd。我建议在 viewWillAppeaer 中进行创建,并在 viewDidDisappear 方法中删除广告。像这样,你只会在可见视图中创建尽可能多的横幅。听起来你正在使用 viewdidLoad / viewWillUnload 对。

It sounds like you're not removing your iAds when views hide. I suggest doing the creation in viewWillAppeaer and removing ads in the viewDidDisappear method. Like this, you'l only end up with as many banners as you create in the visible view. It sounds like you're using the viewdidLoad/viewWillUnload pair instead.

这篇关于在多个屏幕上播放iAd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆