title: How to disable UIButton highlight when pressed in a nib file?
body: <p>I have a <code>UIButton</code> inside a <code>UIView</code> in a nib file and I want to disable the highlight when the button is pressed.</p>
  
  <p>However unchecking the box (for all states) 'Highlighted Adjust Image' in Interface Builder for the button doesn't remove the highlight.</p>
  
  <p>I have also tried to disable the highlight programmatically with in an @IBAction:</p>
  
  <pre><code>@IBAction func myButtonTapped(_ sender: UIButton) {
      sender.adjustsImageWhenHighlighted = false
  }
  </code></pre>
  
  <p>But the highlight is still here when the button  is pressed.</p>
  
  <p><strong>How to disable the highlight when none of the above methods work?</strong></p>