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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:05:40+00:00 2026-06-17T02:05:40+00:00

I am using Xcode UISplitViewController default template to create an application. My app will

  • 0

I am using Xcode UISplitViewController default template to create an application.

My app will be landscape only.

I would like to make the masterViewController wider… 400 px, for example. I want it to be always that width.

I do this on the initWithNib.

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = NSLocalizedString(@"Cars", @"");
        self.clearsSelectionOnViewWillAppear = NO;
        self.contentSizeForViewInPopover = CGSizeMake(400.0, 600.0);
    }
    return self;
}

But it continues to be 320 px wide, as created by the template.

As far as I googled around, this seems impossible to do. Is this really impossible to change the width of the masterViewController when shown in landscape (in popover ?)

I have also tried to add this in a viewWillAppear and viewDidAppear without success:

[self setContentSizeForViewInPopover:CGSizeMake(400.0, 600.0)];

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-17T02:05:41+00:00Added an answer on June 17, 2026 at 2:05 am

    This is not possible using the built in splitviewcontroller. I would recommend looking up “MGSplitViewController” which will have the functionality you are looking for

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

Sidebar

Related Questions

I am using XCode to build an iPhone application, where I would like to
When you are using Xcode to make an iPhone app, how do you change
I'm using Xcode 4 in combination with Git and would like to increment the
I'm using Xcode 4.2 and Three20 to create app that can be run on
When I first started using Xcode, I didn't like the default project files location.
Using XCode 4, I created a NEW TabBar Application using the default storyboard settings.
Im using Xcode 4.1 lion release. My app was rejected because it only works
I'm trying to create a multi-view iOS (4.3) application in xcode 4 using the
using xcode I would like to achieve a public shared class that stores its
Using xcode 4.2 for iPhone app, without ARC --- When I create an outlet

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.