title: Cant refresh UITableView inside UIViewController
body: <p>Newbie :(</p>
  
  <p>Tweaking my way through tutorials but 36 hours can't figure this one</p>
  
  <p>Example 1.h</p>
  
  <pre><code>@interface RootViewController : UITableViewController {
      NSArray     *userList;      // the current list of users
  }
  @property (nonatomic, retain) NSArray       *userList;
  - (void) updateTable:(NSArray *)data;
  - (void) fetchData;
  @end
  </code></pre>
  
  <p>Example 1.m</p>
  
  <pre><code>- (void) updateTable:(NSArray *)data {
      self.userList = data;
      [self.tableView reloadData];
  }
  </code></pre>
  
  <p>This works, the asynchronous XML object returns an array with the selector updateTable and the table updates.</p>
  
  <p>But when I make the view a UIViewController the table doesn't update</p>
  
  <p>Example 2.h</p>
  
  <pre><code>@class xmlGetStories;
  
  @interface FirstViewController : UIViewController &lt;UITableViewDataSource, UITableViewDelegate&gt; {
          UITableView *tableView;
          NSArray *userList;
  }
  @property (nonatomic, retain) IBOutlet UITableView *tableView;    
  @property (nonatomic, retain) NSArray *userList;
  - (void) updateTable:(NSArray *)data;
  - (void) fetchData;
  @end
  </code></pre>
  
  <p>Example 2.m</p>
  
  <pre><code>- (void) updateTable:(NSArray *)data {
      self.userList = data;
      NSLog(@"updateTable sees this data: %@", userList);
      //[self.tableView reloadData];
      [tableView reloadData];
  }
  </code></pre>
  
  <p>updateTable executes and the data is passed across alright but the table doesn't refresh. I realise that it's something to do with the way I'm addressing the table as it's part of a UIViewController rather than a direct UITableViewController. But I thought that</p>
  
  <pre><code> UIViewController &lt;UITableViewDataSource, UITableViewDelegate&gt;
  </code></pre>
  
  <p>wired in the table. I have another testbed example where example two works if I hardcode the array contents into the AppDelegate.</p>
  
  <p>I have tried</p>
  
  <pre><code>[FirstViewController reloadData];
  [FirstViewController.tableView reloadData];
  </code></pre>
  
  <p>Neither work.</p>
  
  <p>Brain dead looking at code. Hopefully it's something simple.</p>
  
  <p>TIA</p>