title: How to check which image is on a button's background
body: <p>I need to check which image is set as a button background.
  There can be three options, which program sets based on several factors.
  If the specific background is set after some animation, certain functions should be triggered.</p>
  
  <p>So, i need something like: if(button.getBackgroundImage == certainBackgroundImage){ do something}</p>
  
  <p>Now, I am aware that there is a method to set button background to some image:</p>
  
  <pre><code>[button setBackgroundImage:[UIImage imageNamed:@"cloudRed.png"] forState:UIControlStateNormal];
  </code></pre>
  
  <p>is there a method that will do something like this:</p>
  
  <pre><code>UIImage *red cloud = = [UIImage imageNamed:@"cloudRed.png"];
  if([cloud imageForState:UIControlStateNormal] == _cloudRed ){
  
                                   NSLog(@"OMG");
                               }
  </code></pre>