Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble resizing tableView with adMob at the bottom
    primarykey
    data
    text
    <p>I'm trying to resize my tableView when I am have an AdMob view at the bottom of my screen. I've tried a couple things: <a href="https://stackoverflow.com/questions/14223931/change-uitableview-height-dynamically">Change UITableView height dynamically</a> and <a href="https://stackoverflow.com/questions/8032325/resizing-uitableview-when-displaying-adwhirl-ads-across-multiple-views">Resizing UITableView When Displaying AdWhirl Ads Across Multiple Views</a> and <a href="https://stackoverflow.com/questions/11147103/change-size-of-uiviewtable-to-accommodate-for-adwhirl-ad">Change size of UIViewTable to accommodate for AdWhirl Ad</a> but none of those have worked. By not worked, I mean NOTHING happens. The view is EXACTLY the same as it was before I tried those changes. So you know, this <code>tableView</code> is nested inside of a <code>ViewController</code>. Here is the layout:</p> <p><img src="https://i.stack.imgur.com/MQbRJ.png" alt="enter image description here"></p> <p>Here is the last thing I've tried:</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; [self.navigationController setNavigationBarHidden:NO]; #ifdef FREERECORDER CGPoint origin = CGPointMake(0.0,self.view.frame.size.height - 90 - CGSizeFromGADAdSize(kGADAdSizeBanner).height); gBannerView =[[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner origin:origin]; //this is where I'm attempting to resize CGRect tableFrame = self-&gt;tableView.frame; tableFrame.size.height = self-&gt;tableView.frame.size.height - 500; self-&gt;tableView.frame = tableFrame; gBannerView.adUnitID = @"MY_AD_ID"; gBannerView.rootViewController = self; [self.view addSubview:gBannerView]; GADRequest *request = [GADRequest request]; // Make the request for a test ad. Put in an identifier for // the simulator as well as any devices you want to receive test ads. request.testDevices = [NSArray arrayWithObjects: @" MY_TEST_ID", nil]; [gBannerView loadRequest:[GADRequest request]]; #endif self.title = @"All Root Beers"; RootBeerFeedParser* rfp = [[RootBeerFeedParser alloc]init]; rootBeerList = [rfp getCoreDataRootBeers]; self.tabBar.delegate = self; [self-&gt;tableView reloadData]; } </code></pre> <p>This is the result:</p> <p>![enter image description here][2]</p> <p>What it doesn't show, is that the last cell in the <code>tableview</code> is covered by that advertisement and I'm trying to fix that.</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