【问题标题】:Xcode - iAd Error: The operation couldn’t be completed. Banner view is visible but does not have contentXcode - iAd 错误:操作无法完成。横幅视图可见但没有内容
【发布时间】:2014-07-29 13:26:56
【问题描述】:

我在 Storyboard 中添加了一个 AdBannerView,但如果我运行该应用程序,我会收到错误消息:

The operation couldn’t be completed. Banner view is visible but does not have content

整个错误:

[AppDeveloper] ADBannerView: Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=5 "The operation couldn’t be completed. Banner view is visible but does not have content" UserInfo=0x7fd86afdf330 {ADInternalErrorCode=5, NSLocalizedFailureReason=Banner view is visible but does not have content, ADInternalErrorDomain=ADErrorDomain}

【问题讨论】:

  • 你能给我们更多的信息吗?这是整个错误吗?
  • 您是否正确连接了横幅视图?似乎这个错误告诉你你有一个横幅,但它没有填满内容,因为它没有正确连接。

标签: ios swift xcode iad adbannerview


【解决方案1】:

您确定在您的 Swift 文件中包含 ADBannerViewDelegate 吗?在那之后似乎错误是说你还没有实现

func bannerView(banner: ADBannerView!, didFailToReceiveAdWithError error: NSError!)

然后确保将横幅视图的委托连接到视图所在的类,以便它可以使用上述函数处理错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-25
    • 1970-01-01
    • 1970-01-01
    • 2012-02-16
    • 2011-11-12
    • 1970-01-01
    相关资源
    最近更新 更多