title: How to change button name when cell selected in UITableView in swift?
body: <p>I have two <code>UIButton</code> and when you click on each you will go to table view controller and there you can select something.</p>
  
  <p>My question is how to change the button title on selection of any cell.
  I want to replace button title with selected cell's name.</p>
  
  <p><a href="https://i.stack.imgur.com/e8BFs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e8BFs.jpg" alt="enter image description here"></a></p>