iOS9 self.canDisplayBannerAds = true未显示任何广告 [英] iOS9 self.canDisplayBannerAds = true is not showing any ads

查看:162
本文介绍了iOS9 self.canDisplayBannerAds = true未显示任何广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常简单的iAd代码:

Very simple iAd code:

import UIKit
import iAd

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.canDisplayBannerAds = true
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}

iAd.framework 已加载。

过去常常有效。 iOS9之后,无法正常工作。
iAd的模拟器设置设置为100%,刷新率为15秒。没有展示任何广告。
试用iPhone 6,5S,4S和iPad Air2。没有展示任何广告。
我错过了什么吗?即将失去理智......以前所有用于显示没有问题的iAds的应用程序现在都没有显示任何iAd。

It used to work. After iOS9, not working. Simulator settings for iAd set to 100% with refresh rate 15secs. Not showing any ads. Tried on actual iPhone 6, 5S, 4S and iPad Air2. Not showing any ads. Am I missing something here? About to lose my mind... All my apps that used to show iAds with no issues are now showing no iAds at all.

推荐答案

这不再是一个问题。 self.canDisplayBannerAds = true 在运行iOS 9或更高版本的设备和模拟器上按预期工作。

This is no longer an issue. self.canDisplayBannerAds = true works as expected on devices and simulators running iOS 9 or later.

这篇关于iOS9 self.canDisplayBannerAds = true未显示任何广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆