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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:45:54+00:00 2026-05-24T13:45:54+00:00

I have created one navigation based application. In that first view show me the

  • 0

I have created one navigation based application. In that first view show me the list of the drinks and in second view it show me the Details of the Drinks.
All seems ok but while i am navigatting the view at (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Method, It will show me the error like

terminate called after throwing an instance of ‘NSException’

at line

 [self.navigationController pushViewController:drinkDetailViewController animated:YES];

Plese help me, why it happens like that ?

My code for the method is as follow:

(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{

    DrinkDetailViewController *drinkDetailViewController = [[DrinkDetailViewController alloc] initWithNibName:@"DrinkDetailViewController" bundle:nil];
    //UINavigationController *navCon = [[UINavigationController alloc] initWithRootViewController:drinkDetailViewController];

    //[self presentModalViewController:drinkDetailViewController animated:YES];

    //[self dismissModalViewControllerAnimated:YES];

    // ...
    // Pass the selected object to the new view controller.
    [self.navigationController pushViewController:drinkDetailViewController animated:YES];

    [drinkDetailViewController release];

}

While i click on row, it shows me that exception message.
This is project log:

2011-08-10 10:18:10.559 DrinkMixer_Shreyash[694:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "DrinkDetailViewController" nib but the view outlet was not set.'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00dc25a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x00f16313 objc_exception_throw + 44
    2   CoreFoundation                      0x00d7aef8 +[NSException raise:format:arguments:] + 136
    3   CoreFoundation                      0x00d7ae6a +[NSException raise:format:] + 58
    4   UIKit                               0x000c6709 -[UIViewController _loadViewFromNibNamed:bundle:] + 295
    5   UIKit                               0x000c4134 -[UIViewController loadView] + 120
    6   UIKit                               0x000c400e -[UIViewController view] + 56
    7   UIKit                               0x000c2482 -[UIViewController contentScrollView] + 42
    8   UIKit                               0x000d2f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
    9   UIKit                               0x000d1555 -[UINavigationController _layoutViewController:] + 43
    10  UIKit                               0x000d27aa -[UINavigationController _startTransition:fromViewController:toViewController:] + 326
    11  UIKit                               0x000cd32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
    12  UIKit                               0x000d4562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
    13  UIKit                               0x000cd1c4 -[UINavigationController pushViewController:animated:] + 62
    14  DrinkMixer_Shreyash                 0x000029bf -[RootViewController tableView:didSelectRowAtIndexPath:] + 191
    15  UIKit                               0x0008bb68 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
    16  UIKit                               0x00081b05 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
    17  Foundation                          0x0079b79e __NSFireDelayedPerform + 441
    18  CoreFoundation                      0x00da38c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
    19  CoreFoundation                      0x00da4e74 __CFRunLoopDoTimer + 1220
    20  CoreFoundation                      0x00d012c9 __CFRunLoopRun + 1817
    21  CoreFoundation                      0x00d00840 CFRunLoopRunSpecific + 208
    22  CoreFoundation                      0x00d00761 CFRunLoopRunInMode + 97
    23  GraphicsServices                    0x00ffa1c4 GSEventRunModal + 217
    24  GraphicsServices                    0x00ffa289 GSEventRun + 115
    25  UIKit                               0x00022c93 UIApplicationMain + 1160
    26  DrinkMixer_Shreyash                 0x00002089 main + 121
    27  DrinkMixer_Shreyash                 0x00002005 start + 53
    28  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
sharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
(gdb) 

Please help me regarding it. . .

  • 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-24T13:45:55+00:00Added an answer on May 24, 2026 at 1:45 pm

    This is the crash regarding that your IBOutlet for View in DrinkDetailViewController is not set in XIB file. Please set Your View in XIB and then try to run the app. This is done using Interface builder..

    Happy Coding…

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

Sidebar

Related Questions

I create an application base on view based Application project . so i have
I have created a one-time subscription in SSRS report manager 2008. However I keep
I have created a .NET DLL which makes some methods COM visible. One method
I have created an interface using jQuery UI Tabs, however one of my requirements
Ok, I have one JavaScript that creates rows in a table like this: function
I have created a PHP-script to update a web server that is live inside
I have created a UserControl that has a ListView in it. The ListView is
I have a fairly simple iPhone application that I want to have run on
I have an application based on the Core Data Books example, and I'm coming
I've been working on an iPad application that has about 15 view controllers. Some

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.