I've created a tableview which has an AdMob advertisement banner in the bottom of it. If the user has premium the ad will not be shown, using the code advertisementBanner.isHidden = true
.
The problem is that when the advertisement is shown I cannot scroll "to the bottom" since it's already scrolled down all the way, but the ad is covering the area.
As you can see I'm not on the bottom, and I cannot scroll down more since I'm already at the "bottom". So my question now is:
Is there any way I can make my "scroll" even longer? Or do you have another alternative I can do to fix this problem? Thanks.
This is the code I've currently:
//If no advertisement is shown.
func adView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: GADRequestError)
{
advertisementBanner.isHidden = true
}
func adViewDidReceiveAd(_ bannerView: GADBannerView)
{
//What should I insert here to "make tableview even longer"
}