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

The Archive Base Latest Questions

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

My iPhone app was running fine. I added a component to my xib file

  • 0

My iPhone app was running fine. I added a component to my xib file (an activity indicator). I have created my own init method and am using the XIB name in the init method. Now I get this error when I do a pushViewController

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ModelThumbnailView" nib but the view outlet was not set.'

I know this usually crops up when the viewcontroller is not mapped to the view in the xib. But all mappings are fine. I even deleted the class and xib and created them again. The init method is also not returning a nil. But I still get the exception as soon as I call a pushViewController with the object of this class.

Any ideas why?

Edit

Was just debugging and called a method in the viewcontroller before calling a pushViewController on it. The debugger shows that the nib name is set properly, the bundle is nil (coz thats what am passing) but the view is also nil. No idea why!!!

**Posting the code in case it helps **

MyThumbnailViewController *modCont = [[[MyThumbnailViewController alloc] initWithNibName:@"MyThumbnailView" bundle:nil] autorelease];
[modCont setImgName:imgName count:numOfValues andIndex:0];

[[self navigationController] pushViewController:modCont animated:YES]; //This gives the exception

This is the viewDidLoad of the MyThumbnailViewController class. The control never reaches here

- (void)viewDidLoad {
    self.navigationItem.title = imageName;
    self.navigationItem.hidesBackButton = NO;
    [[self navigationController] setNavigationBarHidden:NO];
}

I removed the custom init method but still getting the same error.

SOLVED

Just created the whole thing again and now it works fine, though I don’t see ANY differences in both the things!

  • 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-11T19:55:17+00:00Added an answer on May 11, 2026 at 7:55 pm

    I’m sure you tried this already but just in case have you set a breakpoint at the location before the method is called to handle your pushView and step through the code to see where the exception is being thrown. This sometimes helps. I’ll check back later to see what you find out and to see if I can offer any more help.

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

Sidebar

Related Questions

I have an app that is running fine in the iPhone simulator by way
My app has been running fine on iPhone simulator. I have hit an issue
I have an app that has been running fine on the iPhone simulator for
The Spotify iPhone app I was working on, was running fine, but now I
I have an iPhone app running in the simulator that won't quit. I also
I have an iPhone app, which is running only in landscape mode, but recently
I have a GLSL shader program running my iPhone app (it's a very very
I have a python app running fine on Windows, Linux and Mac which I
The sound for my iPhone app worked fine when I was running iPhone OS
In my iPhone app I have a background task that starts running when the

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.