开发者

iAd testing on iPhone

开发者 https://www.devze.com 2023-01-09 13:05 出处:网络
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开发者_运维知识

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.


Are you sure you've set the delegate on your iAd to point to the ViewController or class containing the bannerViewDidLoadAd and bannerView:didFailToReceiveAdWithError methods?

0

精彩评论

暂无评论...
验证码 换一张
取 消