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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:49:45+00:00 2026-05-15T09:49:45+00:00

I know nib files are serialized objects and they have owner, outlets to make

  • 0

I know nib files are serialized objects and they have owner, outlets to make connections.
Using XCode Navigation window template I created application, which in its order created 2 nib files – MainWindow and SecondView. I can’t understand how MainWindow is referring to SecondView, there is no connection between those two as far as I can see. SecondView’s owner is UIViewController and in MainWindow there is a navigation tab which is also UIViewController. But how they are connected in IB I can’t understand…

Also I don’t understand who is
instanciating MainWindow’s owner
object and where that object is being
kept, where is the variable which is
UIApplication myApp = [[UIApplication
alloc] init]
.

This one is self-answered: UIApplicationMain and to have the instance variable I need to create outlet somewhere.

If I create 10 nib files with UIViewController owner, who will trigger their deserialization?

If some class is nib file’s owner, what is the essential responsibilities of that class? Is it deserializing nib file into memory?

Sorry for unorganized questions, I’ve been reading numerous articles and docs about nib files, but it is still confusing.

  • 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-15T09:49:45+00:00Added an answer on May 15, 2026 at 9:49 am

    The MainWindow.xib is loaded when your app launches.

    Open up the MainWindow.xib. Make sure you are in List View. You should see an instance of a UINavigationController. Inside that you should see an instance of UIViewController. Select the View Controller instance and take a look at the Inspector Panel. You should see that it has a property “Nib Name” which is set to “RootViewController”. So, the viewController will look for and load the “RootViewController” nib at runtime.

    So, if you create 10 nibs you are responsible for the deserialization, but Interface Builder has ways to help you keep nibs small and manageable by packaging views in individual nib files.

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

Sidebar

Related Questions

I am creating an iphone app and wanted to know if using NIB files
I have a problem loading different nib files in one tableView. I saw this
I have a nib file I've loaded like so [NSBundle loadNibNamed: @myNibFile owner: self
I have a cocoa application. With two NIB/XIB files, one of them is the
I have more than 3 views and also one window view ( pdfReader.xib nib
I have several nib files and I need to track how many times the
I have a nib file which has a bunch of views and custom objects
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
I know, I would have thought the answer was obviously no as well, but
In my application I'm using a Navigation Controller to push one view that loads

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.