title: How to change a label text color when pressed on a table view with swift?
body: <p>I have a <code>UITableView</code> with a cell that has 1 <code>UILabel</code> in it. I want the cell labels text color to change when the cell is pressed. How do I do that?</p>
  
  <p>This is what I tried:</p>
  
  <pre><code> func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) {
          let cell:UITableViewCell = self.tableView.dequeueReusableCellWithIdentifier("Cell") as UITableViewCell
  
          let label:UILabel = cell.viewWithTag(1) as UILabel
          label.textColor = UIColor(red: 46/255.0, green: 204/255.0, blue: 113/255.0, alpha: 1.0)
          cell.reloadInputViews()
  
  
  
      }
  </code></pre>