I am working on an application and would like to enable iAd. I managed to add a banner ad and they work well. However, I want to add a larger add-on that fills most of the screen, but not full-screen. I added adBanner using the code from the Benzel Question and this solution from erdekhayser.
Apple iAd Documentation (Page 3)
The link I referenced above is derived from the documentation for the apple, and the apple refers to the iAd as an MREC declaration. This is what I would like to have. I canβt figure out how to create and add one. I tried to resize the ad unit, but still can't figure it out.
Any help would be appreciated
This is the code that I still have:
import UIKit import SpriteKit import iAd import Twitter var adBannerView: ADBannerView! class GameViewController: UIViewController, ADBannerViewDelegate { var scene: GameScene! func loadAds() { adBannerView = ADBannerView(frame: CGRectZero) adBannerView.delegate = self adBannerView.hidden = true view.addSubview(adBannerView) } override func viewDidLoad() { super.viewDidLoad()
source share