title: Not getting action in UIbutton which is inside a Label of Custom Cell
body: <p>I have the following set-up: I have UITableView and i am setting custom cells in it called PBDetailsCell. </p>
  
  <p>PBDetailsCell contains 2 labels: LeftLabel and RightLabel. I am setting a button inside the right label and when the button is pressed in the rightlabel of the PBDetailsCell, I would like for it to call the buttonPressed: method set up in the UITableView.</p>
  
  <p>I am writing this code currently but it seems that the buttonPressed is not getting called...</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  
  {    PBDetailsCell *cell = (PBDetailsCell *) [tableView dequeueReusableCellWithIdentifier:[PBDetailsCell reuseIdentifier]];
  if(cell==nil){
      [[NSBundle mainBundle] loadNibNamed:@"PBDetailsCell" owner:self options:nil];
      cell=_detailCell;
      _detailCell=nil;
  }
  
      cell.leftLabel.text = @"  Action";
  
      UIImage* img = [UIImage imageNamed:@"action.png"];
      UIButton* but = [[UIButton alloc] initWithFrame:CGRectMake(0, 5, cell.rightLabel.frame.size.width-20, cell.rightLabel.frame.size.height-10)];
      [but addTarget:self action:@selector(btnPressed:) forControlEvents: UIControlEventTouchUpInside];
      [but setImage:img forState:UIControlStateNormal];
  
      [cell.rightLabel addSubview:but];
  } 
  - (void)btnPressed:(id)sender
  { NSLog(@"Button pressed");}
  </code></pre>