iad

how to display test IAd banner in the simulator

时光总嘲笑我的痴心妄想 提交于 2019-11-26 04:55:26
问题 hi all i imported iAd frame work and implemented code for the iAd.My sample code is below shown .h file #import <UIKit/UIKit.h> #import <iAd/iAd.h> @interface IadTestViewController : UIViewController<ADBannerViewDelegate> { BOOL isBannerVisible; IBOutlet ADBannerView *banner; } @property(nonatomic,assign)BOOL isBannerVisible; @property(nonatomic,retain)IBOutlet ADBannerView *banner; @end .m file i implemented delegate methods #import \"IadTestViewController.h\" @implementation

Swift iAd - More than 10 instances of ADBannerView warning and CGAffineTransformInvert: singular matrix output

为君一笑 提交于 2019-11-26 00:48:53
问题 So I am trying to set up a simple iAd banner in my application but I am getting these two warnings in the output: WARNING: More than 10 instances of ADBannerView or ADInterstitialView currently exist. This is a misuse of the iAd API, and ad performance will suffer as a result. This message is printed only once. and <Error>: CGAffineTransformInvert: singular matrix. This is what I am using to implement my ADBannerView : var adBannerView = ADBannerView() func loadAds() { adBannerView =