title: Image insets getting changed itself in iOS Swift
body: <p>I have a bar button item with an image. I have added it's insets using the storyboard. Now, I am hiding the bar button item using </p>
  
  <pre><code>if ( ques == 1 &amp;&amp; ques == self.totalques ){
           self.nextimage.tintColor = UIColor.clearColor()
           self.nextimage.enabled = false
           self.previmage.tintColor = UIColor.clearColor()
           self.previmage.enabled = false
              }
  </code></pre>
  
  <p>When I enable the button again, the insets get lost. How can I save the insets?</p>