title: changing text color in custom UITableViewCell iphone
body: <p>I have a custom cell and when the user selects that cell, I would like the text in the two UILabels to change to light gray. </p>
  
  <p><strong>ChecklistCell.h:</strong></p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  
  @interface ChecklistCell : UITableViewCell {
      UILabel *nameLabel;
      UILabel *colorLabel;
      BOOL selected;
  
  
  }
  
  @property (nonatomic, retain) IBOutlet UILabel *nameLabel;
  @property (nonatomic, retain) IBOutlet UILabel *colorLabel;
  
  
  
  @end
  </code></pre>
  
  <p><strong>ChecklistCell.m:</strong></p>
  
  <pre><code>#import "ChecklistCell.h"
  
  
  @implementation ChecklistCell
  @synthesize colorLabel,nameLabel;
  - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
      if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
          // Initialization code
      }
      return self;
  }
  
  
  - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  
      [super setSelected:selected animated:animated];
  
      // Configure the view for the selected state
  }
  
  
  - (void)dealloc {
      [nameLabel release];
      [colorLabel release];
          [super dealloc];
  }
  
  
  @end
  </code></pre>