iAds causes problems with auto layout?

后端 未结 1 761
孤独总比滥情好
孤独总比滥情好 2020-12-21 12:37

Whenever I set

self.canDisplayBannerAds = true

in my viewDidLoad method, my layouts all get shifted over and messed up for some reason. Th

相关标签:
1条回答
  • 2020-12-21 12:53

    If you're implementing your own ADBannerView then you need to remove self.canDisplayBannerAds = true from your viewDidLoad.

    self.canDisplayBannerAds = true can be used for a no hassle way of implementing iAd banners in your application. 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.

    You either implement your own ADBannerView or use self.canDisplayBannerAds = true, not both.

    0 讨论(0)
提交回复
热议问题