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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:10:49+00:00 2026-06-02T08:10:49+00:00

I have a huge problem, I’ve integrated inmobi in my app, which doesnt support

  • 0

I have a huge problem, I’ve integrated inmobi in my app, which doesnt support interface orientation, but when i press on ad, view is loaded on top and it rotates, this wouldn’t be bad, but the when it rotates, the view becomes distorted, not covering full screen,
maybe someone has had similar problem?
My code:

- (void)showInMobiBanner
{
    if (_inMobView == nil)
    {
        _inMobView = [[IMAdView alloc] init];
        _inMobView.delegate    = self; //optional
        _inMobView.imAppId     = kInMobiAppId;
        _inMobView.imAdUnit    = IM_UNIT_320x50;
        _inMobView.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin;
    }
    if (self.containerView != nil) 
    {
        _inMobView.rootViewController = self.containerView;
    }
    else
    {
        _inMobView.rootViewController = self.navigationController;
    }
        IMAdRequest *request = [IMAdRequest request];
        request.isLocationEnquiryAllowed = NO;

        _inMobView.frame = CGRectMake(0, 0, 320, 50);
        _inMobView.imAdRequest = request;
        [_inMobView loadIMAdRequest:request];
    [self.view addSubview:_inMobView];
}

Thanks in advance!

  • 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-06-02T08:10:50+00:00Added an answer on June 2, 2026 at 8:10 am

    It seems you’re using an older version of InMobi SDK(3.0.2).

    There has been a newer version launched very recently: http://developer.inmobi.com/wiki/index.php?title=IOS_SDK_350

    A new method has been introduced:

    - (BOOL)shouldRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation;
    

    You can make use of this method in your UIViewController, and tackle orientation changes something like this:

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
        return [imAdView shouldRotateToInterfaceOrientation:interfaceOrientation];
    }
    

    Hope this helps!

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

Sidebar

Related Questions

We have a huge performance problem in our app, we collect data from different
I'm encountering a huge problem, I have tried everything I could, but I didn't
I have a huge problem when i terminate my app. After i restart it
this is my first post. I have a huge problem which make me headaches.
I made an application using jQuery mobile, but now I have a huge problem.
Sorry for maybe dumb question, but i have HUGE problem with one case when
I have a huge problem with the REPLACE SQL function in Microsoft SQL Server
I have a huge problem with this method im trying to make. I have
Greeting! I have the following problem. I have a table with huge number of
I have huge data which is static. I need to save it within the

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.