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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:34:39+00:00 2026-06-05T10:34:39+00:00

Usually when I pass in nil as the first parameter of initWithNibName:bundle: it will

  • 0

Usually when I pass in nil as the first parameter of initWithNibName:bundle: it will automatically find the name, but sometimes it doesn’t and it just shows a black screen. Under what circumstances does this happen? There are no errors in the console window and the app happily keeps running as a black screen unless I change the nil to a string literal of the nib name. Where can I check to fix this problem?

  • 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-05T10:34:40+00:00Added an answer on June 5, 2026 at 10:34 am

    I’ve never passed “nil” in the first parameter of [UIViewController initWithNibName: bundle:] before, but Apple’s documentation says:

    If you specify nil for the nibName parameter and you do not override
    the loadView method, the view controller searches for a nib file using
    other means. See nibName.

    So presumably you’re doing something in your loadView method.

    It’s probably safest (and a best practice) to probably just specify the explicit .xib name when instantiating your view controller.

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

Sidebar

Related Questions

This is pretty bad micro-optimizing, but I'm just curious. It usually doesn't make a
Usually I don't have problems writing assembly and testing and debugging. But then sometimes
I'm still learing VB.NET and usually I just google my questions, but this time
To be able to unit test my C++ code I usually pass the constructor
When I have to render textarea content to the front end I usually pass
Usually Python descriptor are defined as class attributes. But in my case, I want
Usually when I cant find information on an issue its due to something stupid!
Usually I use $("#id").val() to return the value of the selected option, but this
I usually pass macro definitions from "make command line" to a "makefile" using the
I often need to pass methods from objects into other objects. However I usually

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.