title: How to check a buttons image in Xcode
body: <p>I am currently trying to find out, whether it is possible to check which image a button uses.</p>
  
  <p>Lets say I have image1 and image2.</p>
  
  <p>If the buttons image is image1 do this and if buttons image is image2 do that.</p>
  
  <p>But xcode doesnt give me any autofill options....</p>
  
  <pre><code>[m1 setImage:[UIImage imageNamed: @"Penguin.png"] forState:UIControlStateNormal];
  </code></pre>
  
  <p>This is how i set the images. but how do i find out wheter its Penguin or Penguin2?</p>