title: Loading different data in array
body: <p>So I got this array setup called tableDateArray, which is defined in <strong>SubClass.h</strong>. Now im trying to change the data of the array on wether or not a button is selected.</p>
  
  <p>My code in <strong>MainView.m</strong>:</p>
  
  <pre><code>- (IBAction)dateSpecifiedButtonTouch:(id)sender {
  
  if (monthly.enabled == NO){
      NSLog(@"no");
      tableDateArray = [NSArray arrayWithObjects:
                        @"January 2012",
                        @"February 2012",
                        @"March 2012",
                        @"April 2012",
                        @"May 2012",
                        @"June 2012",
                        @"July 2012",
                        @"August 2012",
                        @"September 2012",
                        @"Octobre 2012",
                        @"November 2012",
                        @"December 2012",
                        @"All months",
                        nil];
      }
  
  if (monthly.enabled == YES){
      NSLog(@"yes");
      tableDateArray = [NSArray arrayWithObjects:
                        @"2002",
                        @"2003",
                        @"2004",
                        @"2005",
                        @"2006",
                        @"2007",
                        @"2008",
                        @"2009",
                        @"2010",
                        @"2011",
                        @"2012",
                        @"All years",
                        nil];
  }}
  </code></pre>
  
  <p>So the NSlog is tracing the correct value so that's not the issue. But my array will be filled with whatever state is selected first and is refusing to change the data. Im sure im overlooking something simple.</p>
  
  <p><strong>Added per request:</strong></p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  static NSString *CellIdentifier = @"Cell"; // unused method of type cell.
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
  }
  cell.textLabel.text = [tableDateArray objectAtIndex:indexPath.row];
  return cell;
  }
  </code></pre>
  
  <p>I dont think im calling <code>reloaddata</code> to be honest.</p>