I'm fairly new to xcode, but i'm having some trouble adding admob to my app.
I followed the instructions for Admob but the ads are not showing up.
Im thinking i need to add the new view i created AdViewController to appsdelegate. Is there a code i should add for that?
BTW: Im using a tabbar controller as the rootviewcontroller
In the view controller in which you want to display the add , do the following :
.h
.m
You need to set the
rootViewController
to be theUITabBarController
, but you need to add theGADBannerView
object into the view for the view Controller that's currently being shown.There's an example using a custom UITabBar solution here.