I am trying to place an iAd banner in an application based on UINavigationController (this is not the standard navigation application offered by xcode because I don't need a table view). I would like to place ADBanner at the bottom to be always visible, regardless of how the user pops up and pushes the views.
I studied the iAdSuite example in the Apple code example, but although it reported “best practices”, I don’t think this is the best practice for what I need. It basically declares ADBannerView in the application delegate class, and then implements the ADBannerViewDelegate methods for each individual view that applications need. This means that the ADBannerViewDelegate methods are repeated over and over for each class controller class you need! That doesn't seem too smart ... :(
I would prefer the approach to be more similar to what Apple itself does in the application based on the tab bar, where you have the part of the window that is always occupied by the tab controller, and all the views above without affecting the tab below. You cannot directly put ADBannerView together with the nav controller in the application delegate, because ADBanner needs to be placed in the view controller (otherwise you will get a runtime error).
I tried a subclass from UIViewController, implementing ADBannerViewDelegate in this class, and put it in rootViewController along with UINavigationController, but I had no luck with this approach ...
Has anyone found a good, easy way? Any hint?
Thanks for any help ...
source share