I'm trying to get ADBanner
at the bottom above UITabBarController / float above UITabBarController
as I'm using PFQueryTableViewController
I'm getting the ADBanner as a part of TableViewCell
and the ADBanner is scrollable like the table.
And as I'm using PFQueryTableViewController
I can't add view to my table .
as it is scrollable .
The following code I'm using inside viewDidLoad
method
let bannerView: GADBannerView = GADBannerView(adSize:kGADAdSizeSmartBannerPortrait)
bannerView.frame.origin = CGPointMake(0, self.view.frame.size.height - 49 - 50)
bannerView.adUnitID = "ca-app-pub-5819113245629378/9884937047"
bannerView.rootViewController = self
self.view.addSubview(bannerView)
bannerView.loadRequest(GADRequest())
Update: This is how I'm adding the containerView.
Now the containerView is not visible