Note that there are some explanatory texts on larger screens.

plurals
  1. POAdMob banner position on ios app
    primarykey
    data
    text
    <p>i'm working on a ios app that is so structured:</p> <p>mainNavigation(navigation controller for mainapp-login)->tabBarController(3 tab bar item)->NavigationController(navigation contronoller for every tab bar item).</p> <p>I want add admob in the top of my app(in the top of my navigation bar...). In my viewDidLoad of a tab bar item, i did this:</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; //bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner]; bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, 70.0 - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; // Specify the ad's "unit identifier". This is your AdMob Publisher ID. bannerView_.adUnitID = @"ID"; bannerView_.rootViewController = self; [self.navigationController.view addSubview:bannerView_]; [bannerView_ loadRequest:[GADRequest request]]; } </code></pre> <p>The banner, hide the navigation bar, like so: <a href="http://cl.ly/image/3C2S0m040O2h" rel="nofollow">http://cl.ly/image/3C2S0m040O2h</a> Instead if i don't use:</p> <pre><code>bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, 70.0 - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; </code></pre> <p>But use:</p> <pre><code>bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner]; </code></pre> <p>Look so: <a href="http://cl.ly/image/203v1C2W1b2P" rel="nofollow">http://cl.ly/image/203v1C2W1b2P</a> Instead i want that banner is showed in top, and all content(also the navigation bar)...go below the banner. How i can do ? Thanks, and sorry for my bad english.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload