title: Hiding one button out of three buttons using iOS Swift
body: <p>I've a UITableView with around 5 cells (rows). Each cell(row) has three UIButtons added as the respective cell's subview.</p>
  
  <p><strong>Row1:</strong> Button1    Button2     Button3 // all these buttons has tag = row_number = 1</p>
  
  <p><strong>Row2:</strong> Button1    Button2     Button3 // all these buttons has tag = row_number = 2</p>
  
  <p><strong>Row3:</strong> Button1    Button2     Button3 // all these buttons has tag = row_number = 3</p>
  
  <p><strong>Row4:</strong> Button1    Button2     Button3 // all these buttons has tag = row_number = 4</p>
  
  <p><strong>NOTE:</strong> 
  Buttons1 of all the rows are connected to the same IBAction.
  Similarly,
  Buttons2 of all the rows are connected to the same IBAction. so on...
  I'm perfectly able to detect which button has been pressed within a cell. I'm using tags for this.</p>
  
  <p><strong>I want to do the following:</strong></p>
  
  <ol>
  <li>If a button is pressed from a row, it should hide on press while all other buttons in the same row should remain displayed. After some time, if another button is pressed from the same row then the newly pressed button should hide while the previously hidden button should be brought back to the view.</li>
  </ol>
  
  <p>Currently I'm able to hide the first button pressed, but cannot bring it back if the other button from the same row is pressed afterwards.</p>
  
  <ol start="2">
  <li>Is this also possible to keep track of the previously pressed buttons WITHIN THE SAME ROW?</li>
  </ol>
  
  <p>Please guide me how should I implement this.</p>
  
  <p>Thanks in advance.</p>