adbannerview

iAd in xcode 6 with Swift

前提是你 提交于 2019-11-26 13:54:43
问题 I'm working to implement a banner ad in the scene, but it always reports "Thread 1: EXC_BREAKPOINT(code=EXC_ARM_BREAKPOINT, subcode=Oxdefe) and the program stops running. I referenced Mr. T's answer in another question about iAd("Swift - ADBannerView") but still couldn't make it. The code looks like this: import UIKit import SpriteKit import iAd class GameViewController: UIViewController, ADBannerViewDelegate { @IBOutlet var adBannerView: ADBannerView override func viewDidLoad() { super

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 =