开发者

iads in uitabbarcontroller

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜