简体   繁体   中英

iAd testing on iPhone

I'm having a bit of a problem testing iAd on the iPhone and on the simulator. The methods that are called when the ad is loaded or failed don't seem to be called when testing and Apple doesn't want apps to show empty frames when there are no ads to display.

Basically, what I did was to hide the AdView and show it only when the bannerViewDidLoadAd: is called (if the view isn't being shown already). I've placed some NSLogs on both the bannerViewDidLoadAd: and bannerView:didFailToReceiveAdWithError:, but when I run on both the simulator or on the device, nothing is ever logged.

Is this the normal behavior when simulating/testing an app with iAds? Is there any way of making sure it's actually working properly?

Thanks for your time.

您确定已将iAd上的委托设置为指向ViewController或包含bannerViewDidLoadAd和bannerView:didFailToReceiveAdWithError方法的类吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM