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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:25:04+00:00 2026-05-27T01:25:04+00:00

I have downloaded an Xcode project that has three xibs (A.xib, B.xib, and C.xib).

  • 0

I have downloaded an Xcode project that has three xibs (A.xib, B.xib, and C.xib). I noticed that:

  • None of them is called “MainWindow.xib”.
  • In the project summary the Main Interface value is set to MainWindow
  • Main nib file base name is not set
  • Main.c does not specify the app delegate either int retVal = UIApplicationMain(argc, argv, nil, nil);

Still, when I build&run, the app loads A.xib.
How does the app decide what to load?

I am using Xcode 4 and I am targeting iOS 5.
Thank you.

  • 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-27T01:25:05+00:00Added an answer on May 27, 2026 at 1:25 am

    You can set the Main Interface in the Summary tab of your app target.

    See this image:

    Main Interface

    EDIT: Or, as Alan wrote, you can set it in your info.plist file.

    EDIT 2: Oh. I see what your problem is. You can use MainWindow as your main .xib file, but you have to edit which .xib is loaded in MainWindow. Open MainWindow.xib, and select the view controller that is used. If I’m right, its class is set to A. If you want B.xib to be used, you have to change the class to B. You will also have to set the NIB being used for the view controller, in the Attribute Inspector.

    Set the class for the UIViewController being used in MainWindow.xib:

    Set the class

    Set the NIB:

    Set the NIB

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

Sidebar

Related Questions

I have a 3.1 xcode project that has been running my app just fine
I have an app that I'm building with XCode 4.2. It has push, and
I have downloaded Xcode 4.2 and I'm having problems viewing my project in the
I have xcode 4 and iphone simulator 4.3. i have downloaded sample project from
I have downloaded the latest varsion of Xcode. All the tutorials i see for
I have downloaded a font that looks less than desirable if it is not
I have downloaded a web project from CodePlex and am getting the following error
I have already created a project in XCode 4.2 with ARC checked. The problem
I've recently downloaded Xcode 4 and now two of my projects that were working
I have just downloaded XCode 4.2 for Lion from apple developer tools available on

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.