title: How to compare UIColors?
body: <p>I'd like to check the color set for a background on a UIImageView.  I've tried:</p>
  
  <pre><code>if(myimage.backgroundColor == [UIColor greenColor]){
  ...}
  else{
  ...}
  </code></pre>
  
  <p>but that doesn't work, even when I know the color is green, it always falls into the else part.</p>
  
  <p>Also, is there a way to output the current color in the debug console.</p>
  
  <pre><code>p [myimage backgroundColor]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>po [myimage backgroundColor]
  </code></pre>
  
  <p>don't work.</p>