title: Add UITableView to an existing project: crash when adding array to populate rows
body: <p>I'm adding to a project a TableView populated with countries to choose from. Added the New File (UITableView subclass for iPad+XIB), wrote the trigger IBAction code (editing a textfield if default country is not right), made some connections and the empty table view appears. I have read several tutorials and i cannot make out the problem: <strong>when the array with words loads in - (void)viewDidLoad, the app crashes with the following warning:</strong> </p>
  
  <blockquote>
    <p>2012-05-04 12:34:36.740 pruebaF1[4017:f803] <strong>* Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableView.m:6061
    2012-05-04 12:34:36.741 pruebaF1[4017:f803] *</strong> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'...</p>
  </blockquote>
  
  <p>CountryVieWController connections:</p>
  
  <p><strong>File Owner's connections</strong>
  Outlets
  dataSource -> File's Owner
  delegate ->File's Owner
  Referencing Outlets
  view -> File's Owner</p>
  
  <p>Code:  </p>
  
  <pre><code>//  CountryTableVieWController.h
  #import &lt;UIKit/UIKit.h&gt;
  @interface CountryTableVieWController :      
  UITableViewController&lt;UITableViewDelegate,UITableViewDataSource&gt; 
  
  {
      NSMutableArray *countriesArray;
      NSArray *countryArray;
  }
  @end
  
  //  CountryTableVieWController.m
  #import "CountryTableVieWController.h"
  #import "pruebaF1SecondViewController.h"
  
  @interface CountryTableVieWController ()
  @end
  
  @implementation CountryTableVieWController
  
  - (id)initWithStyle:(UITableViewStyle)style
  {
      self = [super initWithStyle:style];
      if (self) {
      // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {   
  
      [super viewDidLoad];
  
      countriesArray = [[NSMutableArray alloc] initWithObjects:@"Austria", @"Italy", @"France",nil];
  }
  </code></pre>
  
  <p>Thanks in advance.</p>