How to place an AdBannerView ad in all views from a TabBar application?

I am making a Tab Bar app. It has 3 ViewControllers. I learned how to host a working AdBannerView (because I’m kind of new to this), so I put it on FirstViewController. But then I realized that I want the ad to be present in all three view controllers, and not just on the first. So, I am wondering if I can place an AdBannerView as MainWindow.xib, or do I need to place one AdBannerView in each ViewController?

Thanks so much if you can help me!

+4
source share
2 answers

Apple has a technical note on this subject - Technical Note TN2286: Introducing the iAd Common Banner.

http://developer.apple.com/library/ios/#technotes/tn2286/_index.html

+3
source

The iAdSuite sample code shows how to work with BannerView in a tabbed application.

iAdSuite

+3
source

Source: https://habr.com/ru/post/1389360/


All Articles