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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:12:10+00:00 2026-05-27T18:12:10+00:00

When I create a UIViewController in Xcode I can decide to add a nib

  • 0

When I create a UIViewController in Xcode I can decide to add a nib file. Assuming I don’t add the nib file at this time. Can I simple add a nib file later and give it the same name as the ViewController?

I am asking this because I currently have a tableview with a certain background color. However, when the view is displayed it looks like the generic UITableView is used instead.

So it is like my nib file is ignored, in fact, when I delete the nib file, it still works the same, but without the background color.

  • 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-27T18:12:11+00:00Added an answer on May 27, 2026 at 6:12 pm

    I figured it out what my nib file was ignored. The problem was that I did not instantiate my ViewController myself bug I defined it in IB by adding a NSObject to my storyboard and setting its class to my class.

    However, like this the object is simply alloc] init]‘ed but to load the nib, it has to be allocated like this:

        self.myVC = [[MyViewController alloc]initWithNibName:@"MyViewController" bundle:nil];
    

    As soon as I do this the nib is loaded and I can configure my UITableView in Xcode. Hooray!

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

Sidebar

Related Questions

1. Step: Create a new UIViewController: - Xcode -> New File... -> Cocoa Touch
Here is what I do: 1) Create New UIViewController subclass , tick with NIB
I would like to create a PopoverController containing buttons, like this one: I can
I have a UIScrollView in my UIViewController defined as this in my .h file:
I create new Window-Based project in xCode and a subclass of UIViewController name Main
When I create a new UIViewController in xcode, it offers to make me an
Create a flat text file in c++ around 50 - 100 MB with the
Create a file called Valid[File].txt and stick some text in it. Start powershell and
create table ImagenesUsuario { idImagen int primary key not null IDENTITY } This doesn't
In a UIViewController subclass I create a bar button item that fires an event

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.