title: How do I put different images in rightBarButtonItem when I click on cell in xcode?
body: <p>How can I change the image in the right button of the navigation bar when I select a specific cell? </p>
  
  <p>A good example is in the picture where the <code>rightBarButtonItem</code> image is different based on the selected cell:</p>
  
  <p><a href="https://i.stack.imgur.com/4Wfya.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Wfya.png" alt="enter image description here"></a></p>