开发者

iads in uitabbarcontroller

开发者 https://www.devze.com 2023-03-07 18:24 出处:网络
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 contr

I have a UITabBarController like this:

iads in uitabbarcontroller

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消