title: UITableView and UIPickerView interaction issues
body: <p>I have a UITableView consisting of three rows - each row is a data field in a settings screen. When the user clicks a row, I have a <code>UIPickerView</code> appear for them to select a value. I am using the <code>UITableViewCellStyleValue1</code> - the left side is the name of the data field, and the right side (<code>detailTextLabel</code>) should be the value selected from the picker.</p>
  
  <p>I created a targetCell ivar to hold the selected cell. In my picker, I use the below code in the <code>didSelectRow</code> method:</p>
  
  <pre><code>    self.targetCell.detailTextLabel.text = @"TEST";
  </code></pre>
  
  <p>Which works, however I have several presentational issues. The first was that the detailTextLabel text was white (although API says it should be blue??!?) I fixed this with:</p>
  
  <pre><code>    self.targetCell.detailTextLabel.textColor = [UIColor blackColor];
  </code></pre>
  
  <p>However, the text does not appear in the cell until I click the cell or another cell. So I tried adding a 
      <code>[self.tableView reloadData];</code>
  Which does the trick of refreshing the cell and getting the label text to appear, but also removes the blue highlighting which I want to maintain.</p>
  
  <p>If you could look over this code and let me know the easiest way to get the below results when selecting a value on the picker:</p>
  
  <ul>
  <li>cell <code>detailTextLabel.text</code> immediately updates to the selected
  value in black color</li>
  <li>the blue highlight on the active cell is maintained</li>
  </ul>
  
  <p>Thanks!</p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)pickerView didSelectRow: (NSInteger)row inComponent:(NSInteger)component { 
      // Handle the selection 
      self.targetCell.detailTextLabel.textColor = [UIColor blackColor];
      self.targetCell.detailTextLabel.text = @"TEST";
      [self.tableView reloadData];
  } 
  </code></pre>
  
  <p><strong>Edited to add final code soluton:</strong></p>
  
  <p>Thanks to chown for the answer - my final working code is:</p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)pickerView didSelectRow: (NSInteger)row inComponent:(NSInteger)component { 
      // Handle the selection 
      self.targetCell.detailTextLabel.textColor = [UIColor blackColor];
      self.targetCell.detailTextLabel.text = @"TEST";
      NSIndexPath *path = [self.tableView indexPathForSelectedRow];
      [self.tableView reloadData];
      [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:path.row inSection:0] animated:NO scrollPosition:UITableViewScrollPositionNone];
  } 
  </code></pre>