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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -