title: How to get the X and Y position of a UI button iPhone
body: <p>Could somebody show me how to get the x and y position of a UIButton in cocoa?</p>
  
  <p>The button moves on the screen when clicked and I want to use it's current position to position another UIBUtton relative to it.</p>
  
  <p>I've tried using</p>
  
  <pre><code>CGRect rect=[myButton imageRectForContentRect];
  </code></pre>
  
  <p>The compiler tells me that myButton may not respond to imageRectForContentRect.</p>