title: cellForRowAtIndexPath is not being called
body: <p>I had trouble communicating between two views. My objective was to add a new object to my <code>NSMutableArray</code>. Thank to the lovely folks at stackoverflow that was fixed. Now I have another issue.<br /><br />
  Even though I'm able to add object to my <code>NSMutableArray</code>, the table is not updating itself to repopulate using the new data. Here is some code:<br /></p>
  
  <h2>FirstViewController.h</h2>
  
  <pre><code>@interface FirstViewController : UIViewController &lt;UITableViewDelegate,UITableViewDataSource&gt;{  
      IBOutlet UITableView *mytableview;  
      NSMutableArray *mytableinfo;  
  @property (nonatomic,retain) IBOutlet UITableView *mytableview;  
  @property (nonatomic,retain) NSMutableArray *mytableinfo;`
  </code></pre>
  
  <h2>FirstViewController.m</h2>
  
  <pre><code>-(IBAction)addShift:(id)sender{
      SecondViewController *secondViewController = [[SecondViewController alloc]init];
      [self presentModalViewController:secondViewController animated:YES];
  }
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      // Return the number of sections.
      return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
      return [mytableinfo count];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
      }
      // Configure the cell...
      cell.textLabel.text =[mytableinfo objectAtIndex:indexPath.row];
      NSLog(@"Data was written to table");
      return cell;
  }
  -(void)viewWillAppear:(BOOL)animated{
      [super viewWillAppear:animated];
      mytableinfo = [[NSMutableArray alloc]init];
      mytableview = [[UITableView alloc]init];
      [mytableinfo addObject:@"Hello world1"];
      [self.mytableview reloadData];
  }
  - (void)viewDidLoad
  {
      UIBarButtonItem *addButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addShift:)];
      self.navigationItem.rightBarButtonItem = addButton;    
      [super viewDidLoad]; 
      UIBarButtonItem *refresh = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(reloadTableData:)];
      self.navigationItem.leftBarButtonItem = refresh;
      mytableinfo = [[NSMutableArray alloc]init];
      [mytableinfo addObject:@"First Shift"];
      [self.mytableview reloadData];
      // Do any additional setup after loading the view from its nib.
  }
  </code></pre>
  
  <h2>SecondViewController.m</h2>
  
  <pre><code>#import "SecondViewController.h"
  #import "FirstViewController.h"
  
  -(IBAction)saveShift:(id)sender{
      FirstViewController *firstViewController = [[FirstViewController alloc]init];
      firstViewController.mytableinfo = [[NSMutableArray alloc]init];
      [firstViewController.mytableinfo addObject:@"SecondViwController Dismissed"];
      NSLog(@"%@",[firstViewController.mytableinfo objectAtIndex:0]);
      [self dismissModalViewControllerAnimated:YES];
  }
  </code></pre>
  
  <p>So when <code>saveShift</code> is called I should be taken back to main view - which I do- and then repopulate my <code>tableview</code>. It's like I'm getting out of a small problem only to jump into another - not a really good feeling!<br />
  Cheers,
  Sam</p>