title: Populating UITableView on a secondary view
body: <p>I have code that has an initial table and when you click an index, it loads another view. I have code that is populating an array correctly, but the code I have just wont populate the table using the array. I have almost the exact same code that I used to populate my main table, but it won't populate. Heres the code:</p>
  
  <pre><code>- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  static NSString *CellIdentifier = @"Cell";
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil)
  {
      cell = [[UITableViewCell alloc] initWithFrame:CGRectZero];
  }
  cell.selectionStyle = UITableViewCellSelectionStyleBlue;
  
  NSLog(@"Questions array = %@", self.answersArray);
  
  cell.textLabel.text = [_answersArray objectAtIndex:indexPath.row];
  
  return cell;
  }
  </code></pre>
  
  <p>For some reason it wont print out the array. I have the array as a property and being initialized in the viewDidLoad method:</p>
  
  <pre><code>    NSInteger row = _indexOfQuestion.row;
  _tempStr = [NSString stringWithFormat:@"http://**.***.**.**/getAnswer.php?num=%d", row];
  self.answersArray = [[NSMutableArray alloc] init];
  self.answersArray = [NSMutableArray arrayWithObject: _selectedQuestion];
  for(int i = 1; i &lt;= 4; i++)
  {
      _hostStr = [_tempStr stringByAppendingFormat:@"&amp;ans=answer%d", i];
      NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString: _hostStr]];
      NSString *serverOutput = [[NSString alloc] initWithData:dataURL encoding:NSASCIIStringEncoding];
      [self.answersArray addObject: serverOutput];
  }
  </code></pre>