title: iOS Development: Crash when loading a UITableViewController and there's no error in the console
body: <p>I've spent that last two hours starring at the most cookie cutter block of code and I can't figure out why it's crashing, plus there's no error message or any useful data shown in the console or debugger.  I'm simply trying to load a view controller that inherits from UITableViewController and its only instance var is a UITableView object.  Here's the class code...</p>
  
  <pre><code>@interface PlayFriendViewController : UITableViewController &lt;UITableViewDelegate, UITableViewDataSource&gt;
  {
   IBOutlet UITableView *rootTableView;
  }
  
  @property (nonatomic, retain) IBOutlet UITableView *rootTableView;
  
  @end
  </code></pre>
  
  <p>Here's the code that loads it and pushes it on to the stack....</p>
  
  <pre><code> PlayFriendViewController *pfvc = [[PlayFriendViewController alloc] initWithNibName:@"PlayFriendView_iPhone" bundle:nil];
   [self.navigationController pushViewController:pfvc animated:YES]; //&lt;--Crashes here
   [pfvc release];
  </code></pre>
  
  <p>and here's the relevant part of the callstack....</p>
  
  <pre><code>0   libSystem.B.dylib              0x33bd52d4 __kill + 8
  1   libSystem.B.dylib              0x33bd52c4 kill + 4
  2   libSystem.B.dylib              0x33bd52b6 raise + 10
  3   libSystem.B.dylib              0x33be9d72 abort + 50
  4   libstdc++.6.dylib              0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376
  5   libobjc.A.dylib                0x3347c594 _objc_terminate + 104
  6   libstdc++.6.dylib              0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46
  7   libstdc++.6.dylib              0x31bd9e46 std::terminate() + 10
  8   libstdc++.6.dylib              0x31bd9f16 __cxa_throw + 78
  9   libobjc.A.dylib                0x3347b4c4 objc_exception_throw + 64
  10  CoreFoundation                 0x33ac07c2 +[NSException raise:format:arguments:] + 62
  11  CoreFoundation                 0x33ac07fc +[NSException raise:format:] + 28
  12  UIKit                          0x320e4118 -[UITableViewController loadView] + 188
  13  UIKit                          0x320a0220 -[UIViewController view] + 24
  14  UIKit                          0x320acd04 -[UIViewController contentScrollView] + 16
  15  UIKit                          0x320acb74 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
  16  UIKit                          0x320aca72 -[UINavigationController _layoutViewController:] + 18
  17  UIKit                          0x320ac54a -[UINavigationController _startTransition:fromViewController:toViewController:] + 374
  18  UIKit                          0x320ac358 -[UINavigationController _startDeferredTransitionIfNeeded] + 176
  19  UIKit                          0x320a00be -[UINavigationController pushViewController:transition:forceImmediate:] + 634
  20  UIKit                          0x3209fe34 -[UINavigationController pushViewController:animated:] + 28
  </code></pre>
  
  <p><strong>One thing to note:</strong> When I remove the UITableView instance var and all connections to it, the view loads successfully.  There's nothing in the view, but at least it doesn't crash.</p>
  
  <p>Any ideas what's happening or how I can get further information on this crash?</p>
  
  <p>Thanks so much for your wisdom!</p>