Iphone:有没有办法强制 ADBanner 显示广告?
各位, 我在应用程序开发方面还是个新手。无论如何,我学习...
所以此时,当我尝试使用 ADBanner 时,我想知道是否有办法强制 ADBannerView 显示广告?
我希望用户在某个时间点击广告,但如果在这个特定时刻广告没有显示在横幅中,我的应用程序肯定会失去使用的机会......
提前感谢您的任何想法。
Smaz
(抱歉我的英语不是我的母语)
Dear all,
I'm quite new in app development. Anyway, i learn...
So at this time, as i'm trying to use ADBanner, i wonder if there is a way to force a ADBannerView to display an ad ?
I want the user to clic the ad at a certain time, but if at this particular instant the ad is not displayed in the banner my app will certainly lost chance to be used ...
Thanks in advance for any idea.
Smaz
(sorry for my english which is not my native language)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有朋友你无法控制这个。未上传到应用程序商店时,它显示广告横幅运行成功,上传到应用程序商店后,它显示广告的
no friend you cannot control this . The time it is not uploaded to app store it shows ad banner running successfully and after upload to app store it shows ad's
不,你无法控制它。然而,更好的方法是隐藏横幅,直到其中没有广告为止。为此,您需要处理 的委托方法iAdView
在
viewDidLoad
中隐藏横幅,然后在bannerViewDidLoadAd
委托方法中显示它。No, you can't control it. However, the better way is to hide the banner until there is no Ad in it. For the purpose you need to handle delegate methods of the iAdView
Hide the banner in
viewDidLoad
then show it inbannerViewDidLoadAd
delegate method.