gpt4 book ai didi

swift - 使用 Swift 在整个多页面应用程序中实现单个 iAd 横幅

转载 作者:行者123 更新时间:2023-11-28 08:59:46 25 4
gpt4 key购买 nike

有谁知道如何实现位于应用顶层的单个 iAd 横幅,以便显示的每个 View Controller 都包含单个 iAd 横幅的相同实例?

几年前我在 Obj-C 中有一个实现,但找不到 Swift 中的等效项。

最佳答案

正如我上面的用户所说,您正在寻找的是共享横幅广告。你不需要将委托(delegate)移动到 app delegate.swift,你只需要在那里添加属性。 https://developer.apple.com/library/ios/technotes/tn2286/_index.html

我为 swift 做了一个广告助手,你为什么不看看呢。 https://github.com/crashoverride777/Swift-iAds-and-AdMob-Helper

关于swift - 使用 Swift 在整个多页面应用程序中实现单个 iAd 横幅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32205089/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com