ios - 如何知道用户是否触摸了iAd?

标签 ios iad

在编辑文本字段时,我将屏幕向上移动以调出键盘,但是当我在屏幕打开时单击 iAd 时,当我关闭广告时,屏幕会下降,键盘会保持不变,因此当我隐藏键盘时,屏幕也会保持不变下降更多,所以所有内容都下降了半个屏幕。我该如何解决这个问题?我想如果我能识别出 iAd 被点击的时间,我就可以保持屏幕向上。

最佳答案

我不确定是否有回调/委托(delegate)方法可供应用程序了解 iAD 中用户的触摸。

这是苹果对此的说法,

If the banner view covered your application’s user interface, it calls the delegate’s bannerViewActionDidFinish: method after the interface is restored.

if your interface was covered by the banner view, your application could still be moved into the background later, either because the advertisement launched another application or because the user chose to do so. In all cases, if your user interface was covered by the banner view, it is uncovered and your delegate’s bannerViewActionDidFinish: is invoked before your application moves to the background. Because the application may be moving into the background, your delegate should return quickly from its bannerViewActionDidFinish: method.

关于ios - 如何知道用户是否触摸了iAd?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18755748/

相关文章:

ios - 通过静默推送通知启动 LocationManager 的 startUpdatingLocation

IOS:了解 uiwebview 是否已停止滚动

ios - AdMob 广告测试横幅永远不会在中介中加载

iphone - ADBannerView 的 isBannerLoaded 属性的值

ios - 为什么 Action 在加载完成后执行多次,为什么它对所有事件进行排队?

ios - Xcode源码路径

ios - 如何从图像的nsdata中最小化base64字符串的长度?

ios - 使用自动布局在 Storyboard 上实现 ADBannerView

ios - 适用于 3.5 和 4 英寸屏幕的应用程序底部的 iAd 横幅

swift - iAd 插页式广告无法在设备上运行