单击后退按钮时 iAds ADBanner 消失
我有一个深度为 3 个视图控制器的导航控制器。根、一、二 我想添加一个 ADBannerview,并且我遵循了苹果的 iAdsSuite 示例代码。 我添加到我所有的视图控制器中。 广告横幅首先加载,然后如果我导航到一和二就可以了。 但如果我从二加一单击后退按钮,横幅将不再加载。 它正在工作根 -->一——>两个,但不起作用两个 -->一——>根。 有人遇到这个问题吗?
i have a navigation controller with a depth of 3 viewcontrollers. root, one, two
i want to add an ADBannerview and I followed the iAdsSuite sample code from apple.
i added to all of my viewcontrollers.
the adbanner loads at first then it is fine if i navigate to one and two.
but if i click back button from two and one, the banner is not loading anymore.
it is working root --> one --> two but it's not working two --> one --> root.
anyone encounter this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果不查看源代码就不可能诊断问题,但是对我来说这听起来像是内存管理问题。有些东西可能在不应该被释放的时候被释放,或者可能没有被保留。
It's impossible to diagnose the problem without looking at the source, however this sounds like a memory management issue to me. Something might be getting released when it shouldn't, or perhaps isn't being retained.
我最终在 appDelegate 中实现了 ADBannerView。使用自定义委托方法来调整一和二的 UITableview 的大小。不知道这是正确的做法...
I endup implementing ADBannerView in appDelegate. Use custom delegate method to resize the UITableview of one and two. Don't know it is the right way to do...