ios - iAd in Tab bar application -
how add iad below tab bar, have added tab bar in rootviewcontroller
self.window.rootviewcontroller = tabbarcontroller;
for single view controller adding iad in viewcontroller
[self.contentview addsubview:viewcontroller1.view]; [self.view addsubview:contentview]; [self.view addsubview:adbannerview];
is working , code tab bar controller
[self.contentview addsubview:tabbarcontroller.view]; [self.view addsubview:contentview];
the tab bar controller not loaded, how add this, in adv
the best follow pattern described in iad suite (a sample code on apple site). best advantage don't lost banner while changing view controller. idea have instance of bannaermanager shares iad banner visible bannerviewcontroller container vc.
Comments
Post a Comment