title: Using a button on a cell to pass data in swift
body: <p>I have 2 VCs, one of them is called HomeVC the other is DetailVC. I have a table view on HomeVC which displays cells with a label and a button. DetailVC just has a label. I am displaying an array of strings on the table view and when the button on the cell is clicked i want to carry the text in the label to the DetailVC's label.</p>
  
  <p>Now i can easily do this with either didSelectRowAt method or using indexPathForSelectedRow in prepare segue method. But both cases requires me to tap on the cell itself but not the button.</p>
  
  <p>I am just a beginner in swift. But to explain this there shouldn't be need for much code. So if you can, please explain with detail.</p>
  
  <p>Thanks in advance.</p>