title: UITableView refreshing problem
body: <p>I am trying to refresh an <code>UITableView</code> every time I navigate the the view that contains this Table.</p>
  
  <p>I Have a <code>ViewController</code> and a custom <code>UITableViewController</code> that manages to set the Table Correctly when the application starts, using an <code>NSMutableArray</code> contained inside the controller.</p>
  
  <p>When I navigate to the page containing the table, the <code>ViewController</code> calls a function that gets the data from a server with an HTTP request and parse it in an <code>NSMutableArray</code>.</p>
  
  <p>Now here is my problem. I manage to send this array to my <code>UITableViewController</code>, but when I want to refresh my tableView, nothing happens.</p>
  
  <p>I tried to use <code>[myTable reloadData]</code>, but it doesn't calls the numberOfRowsInSection, or <code>cellForRowAtIndexPath</code> functions. I saw that people with the same problem solved it using <code>[self.myTable ReloadData]</code>, but I get an error : </p>
  
  <blockquote>
    <p>accessing unknown getter/setter method</p>
  </blockquote>
  
  <p>I am pretty new to objective-C, and this error is still a bit mysterious to me as I get it a bit randomly.</p>
  
  <p>Anyway, there is a high probability that I made a mess with the declaration of the <code>UITableViewController</code> (where am I supposed to declare it?) and with the Interface Builder links, so this can be a clue to find the solution.</p>
  
  <p>Any one have an idea?</p>
  
  <p>Thank you very much!</p>
  
  <p>EDIT : Here is my tableview controller class:</p>
  
  <pre><code>#import "MyCell.h"
  
  @class Mycell;
  
  @interface MyTableController : UITableViewController {
  
      IBOutlet MyCell * myCell;
      IBOutlet UITableView * myTable;
      NSMutableArray *data;
  
  }
  
  @property (nonatomic, retain) IBOutlet UITableView * myTable;
  - (void) EditTable : (NSMutableArray*) param;
  
  
  @end
  </code></pre>
  
  <p>And now the .m:</p>
  
  <pre><code>@implementation MyTableController
  @synthesize myTable;
  
  - (void) viewDidLoad {
  
  [super viewDidLoad];
  myTable = [[UITableView alloc] init];   
  data = [[NSMutableArray alloc] init];
  }
  
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  
  return 1;
  
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
  return [data count];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  static NSString *CellIdentifier = @"MyCell";
  
  MyCell *cell = (MyCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];  &gt;
  
  if (cell == nil) {
  
      NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"MyCell" owner:self options:nil];
  
      for (id currentObject in topLevelObjects){
  
          if ([currentObject isKindOfClass:[UITableViewCell class]]){
  
          cell =  (MyCell *) currentObject;
  
              }
          }
  
      }
  
  
      NSString *datastring = [listenom objectAtIndex:indexPath.row];
      [cell setCell: datastring ];
      return cell;
  }
  
  
  - (void) EditTable : (NSMutableArray*) param{   
  
  //This function is called by the ViewController when the user goes to the page containing the view
  
      data = param; //The param array contains the data from the HTTP request
  
      [self.tableView reloadData];
  
      [self.myTable reloadData]; //I tried both, but only the first one actually calls the previous functions
  
  }
  </code></pre>