ADBannerView与UINavigationController结合使用时出现问题 [英] Problem with ADBannerView in combination with UINavigationController

查看:54
本文介绍了ADBannerView与UINavigationController结合使用时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下应用程序:

我有1个窗口.在该窗口上,我添加了两个视图.一种视图是UINavigationController的视图.这用于让用户浏览我的应用程序.另一个视图上有一个ADBannerView.该视图位于屏幕底部.

I have 1 window. On that window I add two views. One view is the view of the UINavigationController. This is used to let the user navigate through my application. The other view has a ADBannerView on it. This view is placed on the bottom of the screen.

用户可以毫无问题地浏览我的应用程序,并且ADBannerView始终显示在屏幕上以显示广告.但是,当用户单击ADBannerView并再次将其关闭时,横幅将移动到屏幕顶部,并且UINavigationController视图不再响应.

The user can navigate through my application without any problems and the ADBannerView keeps on the screen to show advertisements. But when the user clicks on the ADBannerView and close it again the banner is moved to the top of the screen and the UINavigationController views are not responding any more.

任何人都知道为什么会发生这种情况以及如何解决此问题?

Anyone has any idea why this happens and how to resolve this issue?

推荐答案

我认为这可能是iAdBanner视图实现中的错误.我自己的应用程序也遇到了同样的问题.当横幅展开以显示完整的广告时,它会更改其框架以填满整个屏幕.然后,当广告被撤消时,它不会重置整个帧,这意味着广告横幅仍占据整个屏幕,而只占其中的一小部分.

I think this may be a bug in the iAdBanner view implementation. I had the same problem with my own app. When the banner expands to show the full ad, it changes it frame to fill the screen. Then when the ad is dismissed, it doesn't reset the full frame, meaning the ad banner is still occupying the entire screen, but only drawing in a small part of it.

尝试从ADBannerViewDelegate协议实施- (void)bannerViewActionDidFinish:(ADBannerView *)banner,并将广告框架调整回原始尺寸(通常为320 x 50).

Try implementing - (void)bannerViewActionDidFinish:(ADBannerView *)banner from the ADBannerViewDelegate protocol and adjusting the frame of the ad back to it's original size (usually 320 x 50).

我将其作为Apple的一个bug提出,但尚未得到任何回应.随时复制它.

I have raised this as a bug with Apple, but not gotten any response as yet. Feel free to duplicate it.

这篇关于ADBannerView与UINavigationController结合使用时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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