iAds with tab bar applications
I've been able to incorporate all of Apple's code, delegation, etc related to iAds, in simple view based applications.
Tab bar type applications seem more difficult, perhaps I don't understand the overall architecture of those apps. It seems that, say, if there are 3 tabs and views corresponding to those tabs that the other tabs sort of inherit or are attached to the first tab.
When working in interface builder, it seems that dragging an adbanner into the windows actually replaces everything that is there and building some kind of view container to put the "tab infrastructure and associated views" and an iad doesn't seem to fly.
I'm able to code by hand the pop of an ad in my code, which shows up when running the app under the first tab, but it doesn't show on the subsequent tabs, I was doing this in viewDidLoad
. It seems the tab bar apps want to sort of own the entire screen realestate to some e开发者_StackOverflowxtent. Any thoughts? There's a UIWindow
and the TabBarController
, the window seems largely "blank" and otherwise purposeless.
What I would do is create a separate custom view, which you push onto your enclosed view in each tab just as part of the viewDidLoad process.
精彩评论