Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6785849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:10:34+00:00 2026-05-26T17:10:34+00:00

I am trying to integrate AdWhirl into my iPhone app using an AppDelegate singleton

  • 0

I am trying to integrate AdWhirl into my iPhone app using an AppDelegate singleton so I can use the same AdWhirl instance across multiple views, but cannot figure out how to resize the tables in those views. The code I am using is:

in …AppDelegate.h:

#import "AdWhirlView.h"
#import "AdWhirlDelegateProtocol.h"

@interface ...AppDelegate : NSObject <UIApplicationDelegate, AdWhirlDelegate>
AdWhirlView *awView;

...

@property (nonatomic, retain) AdWhirlView *awView;

in …AppDelegate.m didFinishLaunchingWithOptions:

awView = [AdWhirlView requestAdWhirlViewWithDelegate:self];

also in …AppDelegate.m I add the required delegate methods

(NSString *)adWhirlApplicationKey...
(UIViewController *)viewControllerForPresentingModalView...

This code allows me to display the same Ad across multiple views but I cannot figure out how to resize a UITableView to change its height to be shorter if an Ad is displaying, so that the UITableView either displays full height if there is no Ad, or is resized if there is an Ad at the bottom of the screen. I have the UITableView as a subview of a UIViewController called myMainView.

I tried changing the autosize properties in the Nib file for the UITableView to have a variable spacer at the bottom, and am adding the AdWhirl instance into the view with this code:

...AppDelegate * myDelegate = (...AppDelegate *)[[UIApplication sharedApplication] delegate];
[myDelegate.awView setFrame:CGRectMake(0, 480-20-44-50, 320, 50)];
[self.myMainView addSubview: myDelegate.awView];

This displays the Ad at the correct location at the bottom of the screen but the UITableView is not resizing. How should I be doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:10:35+00:00Added an answer on May 26, 2026 at 5:10 pm

    I think you have to create a UIView with an embedded UITableView. I’ve tried to do something similar and this was the only way I could get it to work. A top-level UITableView is auto-resized to take up the entire screen.

    Just expanding on that, you probably want to declare something in your header like so:

    @interface ExampleClass:UIViewController {
        UITableView *tableView;
    }
    
    @property (nonatomic,retain) IBOutlet UITableView *tableView;
    

    Then in your actual implementation, you can resize that declared tablview whenever you need to by doing:

    CGRect tableFrame = tableView.frame;
    //Decrease the height of table by height of ad banner
    tableFrame.size.height = tableView.frame.size.height - adBannerView.frame.size.height;
    
    tableView.frame = tableFrame;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to integrate a Facebook send button into my site using Facebook app.
I'm trying to integrate adWhirl into my iPad app, but I it's doesn't seem
I am trying to integrate the TestFlightSdk into an app I've made using MonoTouch
I am trying to integrate the function into a map where you can enter
I am trying to integrate OpenFeint 2.12.5 into my app. I already read this
Im trying to integrate my PHPUnit tests into Hudson using the xUnit plugin. After
We are trying to integrate the System.Web.Providers membership management into a transaction using System.Transactions.TransactionScope
I'm trying to integrate Django's comment app into my site but with no success.
Im trying to integrate Linkedin network in my iphone app.I searched sample codes and
I am trying to integrate AdMob into my Android Application, and can get it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.