How to change 2 UIButton Images with click action in tableviewCell
<p>I have working 2 <code>buttons</code> on <code>tableview cell</code> I got action with <code>sender</code>, but I need to change button images each click  for example:</p>

<p>On load:</p>

<pre><code>button1image = user.png
button2image = empty.png
</code></pre>

<p>If user click <code>button 1</code>:</p>

<pre><code>button1image = empty.png
button2image = user.png
</code></pre>

<p>If user clicks <code>button 2</code>:</p>

<pre><code>button1image = user.png
button2image = empty.png
</code></pre>

<p>In my <code>tableviewcell</code>:</p>

<pre><code>  cell.button1.addTarget(self, action: #selector(ViewController.clickbutton1(_:)), forControlEvents: UIControlEvents.TouchUpInside)

  cell.button2.addTarget(self, action: #selector(ViewController.clickbutton2(_:)), forControlEvents: UIControlEvents.TouchUpInside)
</code></pre>

<p>In <code>ViewController</code>:</p>

<pre><code>func clickbutton1(sender:UIButton) {

        let buttonRow = sender.tag
}

  func clickbutton2(sender:UIButton) {


        let buttonRow = sender.tag

}
</code></pre>

<p>Also I can change <code>buttons</code> inside images like this:</p>

<pre><code>  sender.setImage(UIImage(named:"empty.png"), forState:UIControlState.Normal)
</code></pre>

<p>How can I do that? </p>