简体   繁体   English

将iAd设置在屏幕顶部

[英]Set iAd on top of the screen

I have an iAd banner in my app. 我的应用程序中有一个iAd横幅。 In the storyboard it is on top of everything (just above of the status bar). 在情节提要中,它位于所有内容的顶部(状态栏上方)。 But, when it's loaded on the device it's displayed on the bottom of the screen. 但是,将其加载到设备上后,它会显示在屏幕底部。 How can I change that? 我该如何改变?

Sounds like you're using self.canDisplayBannerAds = true in addition to implementing your own ADBannerView . 听起来除了实现自己的ADBannerView之外,您还使用self.canDisplayBannerAds = true The ADBannerView on the bottom of your screen is created by self.canDisplayBannerAds = true . ADBannerView在屏幕的底部是由创建self.canDisplayBannerAds = true self.canDisplayBannerAds = true can be used for a no hassle way of implementing iAd banners in your application. self.canDisplayBannerAds = true可用于在应用程序中轻松实施iAd标语的self.canDisplayBannerAds = true方法。 This will create an ADBannerView for you and show or hide the ADBannerView depending on whether it receives an ad or not from the iAd network. 这将为您创建一个ADBannerView ,并根据其是否从iAd网络接收广告来显示或隐藏ADBannerView

Remove self.canDisplayBannerAds = true and implement your own ADBannerView if you'd like your ADBannerView to appear at the top of your UIView . 如果希望ADBannerView出现在UIView的顶部,请删除self.canDisplayBannerAds = true并实现自己的ADBannerView

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM