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

The Archive Base Latest Questions

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

I have a project which loads a UIViewController aka appViewController to the UIWindow full

  • 0

I have a project which loads a UIViewController aka appViewController to the UIWindow full screen. I then am adding another UIViewController aka menuViewController to the UIWindow. The menuViewController has a xib with a UIView with dimensions of 480 x 35. I add the menuViewController to the UIWindow like this:

MenuViewController *tempController = [[MenuViewController alloc] initWithNibName:kMenuViewController bundle:nil];

self.menuViewController = tempController;
[tempController release];

menuViewController.view.center = CGPointMake(17, 240);

[window insertSubview:menuViewController.view aboveSubview:appViewController.view];

The problem is that menuViewController is NOT respecting my center call and actually taking on fullscreen and covering my appViewController.

In Interface Builder I saw a property called: Autoresize Subviews checked for the UIWindow. I tried unchecking this and even for the subview and still does not work.

NOTES:
This project was updated from (which worked perfectly fine):

Built with: Xcode 3.x.x (forgot exact)

Base iOS: 3.0

Target iOS: 2.2

And updated to:

Built with: Xcode 4.3.1

Base iOS: Latest (5.1)

Target iOS: 4.2

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

    I found that by editing the size of the view controller a few seconds after it was loaded, the problem was fixed.

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

Sidebar

Related Questions

I have a project which has a set of binary dependencies (assembly dlls for
I have a project which has a main form and some other forms. When
I currently have a C# project which uses plugins and has a fairly common
I have a UIviewcontroller in a navigation based project, to which i am pushing
We have a VB project that loads a reference to a .Net dll (which
I have a project in which the SwitchViewController is root controller It loads the
I have an Xcode project which basically loads and parses a xml file which
I have a flash file (full link to flash looks like http://localhost:8888/PROJECT/swf/audio/player.swf ) which
I have a project which has several components loaded by a single preloader swf.
So in Code::Blocks in Ubuntu (latest). I have a project in which I load

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.