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 6598821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:24:18+00:00 2026-05-25T18:24:18+00:00

Recently I integrated iADs into my project and while setting the size of the

  • 0

Recently I integrated iADs into my project and while setting the size of the adBannerView to portrait or landscape, I used

 [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier480x32];

and

 [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier320x50];

This worked on the simulator, but I got warnings that the code was deprecated. So I changed the code to

 [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifierLandscape];

and

 [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifierPortrait];

and the warnings went away and i worked fine on my simulator.
However, when I tested out my app on my device(iOS 4.1), The GDB gives me a EXC_BAD_ACCESS error. When I switched back to the earlier code(480×32), the app works fine on my device.

So in a nutshell, my device can run apps which use deprecated iAD methods, and crashes when the current iAD methods are used.

Anyone know why? Also, will Apple reject my app if I use deprecated methods?

Thanks

  • 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-25T18:24:18+00:00Added an answer on May 25, 2026 at 6:24 pm

    if your device iOS version is less then 4.2, it will crash because there is no declaration for ADBannerContentSizeIdentifierLandscape and ADBannerContentSizeIdentifierPortrait. You can do a check and see what version the iOS device has, and add ADBannerContentSizeIdentifierPortrait and ADBannerContentSizeIdentifierLandscape only if the version is 4.2 or higher, however you can safely use ADBannerContentSizeIdentifier480x32 and ADBannerContentSizeIdentifier320x50.

    Here’s a sample on how you can do that: Check iPhone iOS Version

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

Sidebar

Related Questions

I have recently integrated in a HUD method into my XNA game project and
I recently integrated gwt-log into my GWT and Maven based project mostly because of
I have recently integrated the .NET NLog logging component into one of our applications
I have a Java software that was recently integrated into another Java software (which
I have a project built with maven and I recently integrated Sonar... It is
Microsoft recently announced that the Javascript/HTML DOM library jQuery will be integrated into the
I recently integrated Facebook support into an iPhone application that I work on. I'm
I recently integrated Cobertura into my Ant build scripts and I am wondering if
I have a site that's been integrated with fb for a little while. Recently
I've recently integrated Junit and Emma into CruiseControl (CC) so it creates nice reports

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.