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

  • SEARCH
  • Home
  • 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 988331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:37:22+00:00 2026-05-16T05:37:22+00:00

What is the best-practice for placing ads in your table view cells? Here’s my

  • 0

What is the best-practice for placing ads in your table view cells? Here’s my code, which works until the banner receives the transitionToNextBanner event, which then crashes my app.

UITableViewCell *cell = [tableVw dequeueReusableCellWithIdentifier:@"BannerAdCellIdentifier"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"BannerAdCellIdentifier"] autorelease];
}
[[cell viewWithTag:9999] removeFromSuperview];

ADBannerView *adView = [[ADBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];
adView.tag = 9999;
adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifier320x50];
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
[cell addSubview:adView];
[adView release];

return cell;

I thought since I’m not setting the ad’s delegate that this would be safe from any memory-related issues.

  • 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-16T05:37:23+00:00Added an answer on May 16, 2026 at 5:37 am

    Apple will very likely reject your application if you place iAd banners within table view cells. The reason being that table view cells have the ability to move on and off screen multiple times (sometimes resulting in recreating/reloading the cell or its contents).

    Since iAds pay out both per click and per impression, this would be an easy way to generate a lot of impressions and get more money through impressions. Apple aren’t going to allow this.

    The iAd guidelines state that iAd banners should be in a fixed spot, and not within a scroll view. It also states that if an iAd fails to load for whatever reason, your app shouldn’t leave a blank space where it would have been. The last point may be purely aesthetic, I don’t know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best practice of placing example usage in code documentation? Is there
What is the best practice for reading config file(s) for your application. Which folders
Is there a good advisory / best practice manual etc. out there which outlines
I just have a quick best practice question regarding custom cells in a UITableView.
Best practice is to use unique ivs, but what is unique? Is it unique
Short best practice question: If an object A is injected into another object B,
The 'best practice' (as I see it) to atomically create a new file, is
The best practice seems to be to use assert for a condition that should
What would be the best practice to keep the user logged in if he
Is there a best practice for making an entity immutable? Users create exercises in

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.