title: detecting uibutton pressed in tableview: Swift Best Practices
body: <p>I have a tableview with a variable number of cells representing students that correspond to their particular instructor.  They are custom cells with a button that triggers a segue to a new VC, bringing up detailed information on the student whose cell it was.  My question is:</p>
  
  <p>What is the best practice in swift for identifying which button was pressed?</p>
  
  <p>Once i know the index path, I can identify which student's information needs to be passed to the next VC. There is a great answer for objective C in the post below, but I'm not sure how to translate to Swift.  Any help would be much appreciated.</p>
  
  <p><a href="https://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview">Detecting which UIButton was pressed in a UITableView</a></p>