我已在我的应用程序中集成了iAd。它在我有互联网连接时有效,但如果我没有互联网连接,ADBannerView
无限重复相同的错误信息。
func addiAd()
{
iAdBanner.frame = CGRectMake(0, 400 320 50
iAdBanner.hidden = true
iAdBanner.delegate = self
self.view.addSubview(iAdBanner)
}
func bannerView(banner: ADBannerView!, didFailToReceiveAdWithError error: NSError!)
{
println(error)
}
2015-06-21 04:43:04.857 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.866 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.876 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.885 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.895 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.906 Music Player[6219:121409] ADBannerView error: Unknown error
2015-06-21 04:43:04.918 Music Player[6219:121409] ADBannerView error: Unknown error