iads in uitabbarcontroller
I have a UITabBarController like this:
I want iads to be displayed right above the tab bar throughout the app. Rather than adding iads to individual view controller (there are like 15-20 view controller), is there a way I can add it to the tab bar itself once, and it will be d开发者_如何学运维isplayed on top of the tab bar in every view?
Thanks
Did you check out the TabbedBanner project in the Apple sample code iAdSuite?
create a separate view controller similar to mentioned in Example iAdsuit
Try to pass your tab bar controller to banner view controller by
self.window.rootViewController = [[BannerViewController alloc]initWithContentViewController:tabBarController];
精彩评论