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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:12:51+00:00 2026-06-01T07:12:51+00:00

In previous versions of Xcode creating a window-based, universal application would populate the project

  • 0

In previous versions of Xcode creating a window-based, universal application would populate the project with iPhone and iPad specific files and assign the appropriate entry points. All that was required was modifications to the iPhone/iPad controllers/xibs to create device specific interfaces.

Sadly, XCode 4.3 no longer offers a window-based template (empty application is the closest) and I don’t know how to appropriately configure the entry points. This is fairly strait forward using storyboarding, but I would like to do it using programmatic or xib-based work flows.

I have created two view controllers and xibs: HomeViewController_iPhone and HomeViewController_iPad. Simply setting the entry point for each device to the appropriate HomeViewController crashes the app. I suspect I need to do a bit more to subclass the application delegate, but I’m not quite sure how to proceed. Any pointers?

  • 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-01T07:12:53+00:00Added an answer on June 1, 2026 at 7:12 am

    This is something like what I do when using a navigation controller aswell. Depending on the device the code loads the correct xib. This goes in didFinishLaunchingWithOptions in the AppDelegate.m. navigationController is a property in AppDelegate.h

    UIViewController *rootViewController;
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
        rootViewController = [[HomeViewController_iPhone alloc] initWithNibName:@"HomeViewController_iPhone" bundle:nil];
    }
    else {
        rootViewController = [[HomeViewController_iPad alloc] initWithNibName:@"HomeViewController_iPad" bundle:nil];
    }
    
    navigationController = [[UINavigationController alloc]
                     initWithRootViewController:rootViewController];
    
    self.window = [[UIWindow alloc] 
                   initWithFrame:[[UIScreen mainScreen] bounds]];
    [self.window addSubview:navigationController.view];
    [self.window makeKeyAndVisible];
    return YES;
    

    Hope it helps towards a solution!

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

Sidebar

Related Questions

I am using a navigation based iPhone application, and I defined an IBOutlet propert
In Xcode 4.2, I created a new project from the tabbed application template. Now
In previous versions of Xcode, when I ran into a crash (does not respond
In previous versions of Xcode we had the ability to filter which document sets
I downloaded and installed final version of Xcode 4. I opened my iPad project
Seriously, in previous versions of XCode I could right-click a file or group in
does anyone know how I can start a new view based application in Xcode
I recently reinstalled Snow Leopard on my iMac. Installing previous versions of the iPhone
Background : Have got v2 of an iPhone application in XCode now, with v1
In previous versions of jQuery tabs there was an option to automatically set 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.