title: What is the action for custom accessory view button - swift
body: <p>This seems to have been asked a few times in swift and objc, but I can't see a correct answer for swift so hopefully someone can help me this time. I have created a custom accessory view button, but need the correct button action: as "accessoryButtonTapped" is an unrecognised selector. </p>
  
  <p>What is the selector needed to call the tableViewCellDelegate method willSelectRowAtIndexPath?</p>
  
  <p>The code I have is:</p>
  
  <pre><code>let cellAudioButton = UIButton(type: .Custom)
  cellAudioButton.frame = CGRect(x: 0, y: 0, width: 20, height: 20)
  cellAudioButton.addTarget(self, action: "accessoryButtonTapped", forControlEvents: .TouchUpInside) //INCORRECT ACTION:
  cellAudioButton.setImage(UIImage(named: "blueSpeaker.png"), forState: .Normal)
  cellAudioButton.contentMode = .ScaleAspectFit
  cell.accessoryView = cellAudioButton as UIView
  </code></pre>
  
  <p>Thanks in advance to anyone who can help.</p>