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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:11:16+00:00 2026-05-15T03:11:16+00:00

I am a little curious, I have a view controller class and an NIB/XIB

  • 0

I am a little curious, I have a view controller class and an NIB/XIB (both are named “MapViewController”) If I do the following it loads the NIB with the matching name.

-(id)init {
    self = [super initWithNibName:@"MapViewController" bundle:nil];
    if(self) {
        do things ...
    }
    return self;
}

if on the other hand I just specify [super init] does Xcode just look for a NIB that matches the name of the controller, is that how this is working?

-(id)init {
    self = [super init];
    if(self) {
        do things ...
    }
    return self;
}

cheers Gary.

  • 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-15T03:11:17+00:00Added an answer on May 15, 2026 at 3:11 am

    From the documentation:

    If you specify nil for the nibName
    parameter and do not override the
    loadView method in your custom
    subclass, the default view controller
    behavior is to look for a nib file
    whose name (without the .nib
    extension) matches the name of your
    view controller class. If it finds
    one, the class name becomes the value
    of the nibName property, which results
    in the corresponding nib file being
    associated with this view controller.

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

Sidebar

Related Questions

I have been using IoC for a little while now and I am curious
I have a curious little problem. I have a service that needs to create
As the title says, I am just a little curious...I have seen some European
I'm a little curious. I have a list of vimeo videos which I play
I have created a little password generation script. I'm curious to what improvements can
I got a little curious after reading this /. article over hijacking HTTPS cookies.
I am a little curious about the cute little kaleidoscopic images associated with each
I am a little curious to know about how OpenID authentication works. Is there
I am a little curious about the last lines in the two examples presented
I am a little curious why the program I wrote on Xcode with a

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.