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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:36:15+00:00 2026-05-15T09:36:15+00:00

I started by creating a universal window based app. Starting with the iPhone version

  • 0

I started by creating a universal window based app. Starting with the iPhone version I created a UIViewController and associated nib.

My App delegate:

rootViewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
[window makeKeyAndVisible];
[window addSubview:rootViewController.view];
return YES;

My RootViewController:

- (void)viewDidLoad {
[super viewDidLoad];
adBannerView = [[ADBannerView alloc] initWithFrame:CGRectZero()];
[self.view addSubview:adBannerView];

}

I’ve tried instanciating buttons instead of the adBanner and I get the same result.

My RootViewController’s nib has not been changed since x-code created it for me.
My MainWindow_iPhone.xib also is stock.

What’s causing this?

Update

After changing the app’s orientation the adBannerView (or button…) will snap into the correct place at y=0. I’ve tried setting adBannerView’s y location to 20 presumably to compensate for the status bar and that makes everything display correctly until I change orientation. Then everything moves down 20 pixels and will leave a 20 pixel space between the adBannerView and the status bar.

  • 1 1 Answer
  • 1 View
  • 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-15T09:36:15+00:00Added an answer on May 15, 2026 at 9:36 am

    Try to add the next line in your viewDidLoad (right after [super viewDidLoad];):

    self.view.frame = [[UIScreen mainScreen] applicationFrame];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application
I started using Core Data for iPhone development. I started out by creating a
I have started creating an app which uses a core data stack at the
I started creating JPA/hibernate mappings for a legacy database based on Oracle. At one
I've started creating a Sencha Touch 2 app that has two models defined, Change
I started creating file downloader class. Here is what i have: public class Downloader
I have not started creating the code so I don't have anything to show,
I have started creating a game, and I added a second project, it's the
I've been developing in Node.js for only 2 weeks and started re-creating a web
I wanted to create jquery plugin & started off creating a sample jquery plugin...But

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.