防止 UIPopoverController 覆盖 ADBannerView
我有包含 OverlayView 和 ADBannerView 的 PhotoViewController。 OverlayView 有一些显示 UIPopoverController 的按钮。有时,此弹出窗口会显示在 ADBannerView 上,我会收到警告:
警告横幅视图 (0x193930) 有广告,但可能被遮挡。此消息仅在每个横幅视图中打印一次。
有没有办法在我的预定义位置显示弹出窗口,或者弹出窗口能够识别有时它会覆盖 ADBannerView?
I have PhotoViewController that contains OverlayView and ADBannerView. OverlayView has some buttons which display UIPopoverControllers. Sometimes this popovers display over ADBannerView and I get a warning:
WARNING A banner view (0x193930) has an ad but may be obscured. This message is only printed once per banner view.
Is there a way to display popover in my predefined position or is popover able to recognize that sometimes it would cover ADBannerView?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这并不是因为popover面板覆盖了ADBannerView,而是因为整个屏幕都被popover占据了,广告无法点击。我听说这不是问题,因为悬停不是故意隐藏的,而是由用户操作触发的。
I found out that it's not because popover panel covers ADBannerView, but it's because whole screen is taken by popover and ad cannot be clicked. I've heard that it's not a problem, because hovering is not purposely hiding, but triggerd by user action.