title: Different states for UIButton not working
body: <p>I have written this code to see different image states...</p>
  
  <pre><code>UIButton *btnComment = [UIButton buttonWithType:UIButtonTypeCustom];
  btnComment.tag=indexPath.row;
  [btnComment addTarget:self action:@selector(goToComment:)forControlEvents:UIControlEventTouchDown];
  
  UIImage *img1 = [UIImage  imageNamed:@"commentbtndown.png"];
  UIImage *img2 = [UIImage  imageNamed:@"commentbtnup.png"];
  UIImage *img3 = [UIImage  imageNamed:@"commentbtnover.png"];
  
  [btnComment setImage:img1 forState:UIControlStateNormal];
  [btnComment setImage:img2 forState:UIControlStateHighlighted];
  [btnComment setImage:img3 forState:UIControlStateSelected];
  [btnComment setImage:img2 forState:(UIControlStateHighlighted+UIControlStateSelected)];
  
  btnComment.frame            =CGRectMake(0, 100, 95, 25);
  [cell addSubview:btnComment];
  
  [img1 release];
  [img2 release];
  [img3 release];
  </code></pre>
  
  <p>but its not working, it is always showing me image 1.</p>
  
  <p>p.s. I have added these images in the table view cell</p>