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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:50:35+00:00 2026-05-29T17:50:35+00:00

This has been driving me mad for a few days… Create a new Window-based

  • 0

This has been driving me mad for a few days…

  • Create a new Window-based application for iPad.
  • Create a new UITableViewController class, targeted for iPad, with XIB.
  • Add the UITableViewController view as a subview to the AppDelegate window.
  • Set the table style to Grouped in the nib.
  • Run in iPad simulator and the table cells go off right-hand end of screen

If I allow rotation and reload the tableView then it’s subsequently sized correctly. Run on iPhone sim displays fine, just iPad portrait initial view that is mis-sized.

  • 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-29T17:50:37+00:00Added an answer on May 29, 2026 at 5:50 pm

    I had a similar problem with a UITableView in a sub-view on my window. I solved it by setting the size of the frame of my UINavigationController in viewDidLoad. For some reason the subview was not constraining itself to the size of the view specified in Interface Builder. Here is what worked for me:

    - (void)viewDidLoad {
        [super viewDidLoad];
    
        UINavigationController *navigationController = [[UINavigationController alloc] init];
        RootViewController *rootController = [[[RootViewController alloc] initWithStyle:UITableViewStylePlain] autorelease];
        rootController.managedObjectContext = self.managedObjectContext;
        [navigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque];
        [navigationController pushViewController:rootController animated:YES];
        [navigationController.view setFrame:CGRectMake(0, 0, 500, self.view.frame.size.height)];
        [self.leftView addSubview:[navigationController view]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something that has been driving me mad over the past few days.
This has been driving me crazy for a few days. Why doesn't the following
This has been driving me nuts for a few days. I am desperate for
This has been driving me crazy for a few days now. I have an
This has been driving me crazy for the past few days. I've done something
This has been driving me insane for days, i am new to android and
This has been driving me crazy for the past few minutes I have a
This has been driving me mad someone help coz i don't seem to see
This problem has been driving me mad. Here's the general gist: I have two
This has been driving me crazy for 2 days. I have been trying to

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.