我在故事板中添加了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}
答案 0 :(得分:0)
您确定在Swift文件中包含ADBannerViewDelegate吗?之后似乎错误就是说你没有实现
func bannerView(banner: ADBannerView!, didFailToReceiveAdWithError error: NSError!)
之后,请确保将您的横幅视图的委托连接到您的视图所在的类,以便它可以使用上述功能处理错误。