title: Using convertPoint to get the relative position inside a parent UIView
body: <p>I've looked at a dozen SO questions on this topic, and none of the answers have worked for me.  Maybe this will help get me back on the right path.</p>
  
  <p>Imagine this setup:</p>
  
  <p><img src="https://i.stack.imgur.com/VcbWy.png" alt="enter image description here"></p>
  
  <p>I want to get the <code>center</code> coordinates of the UIButton relative to the UIView.</p>
  
  <p>In other words, the UIButton center may be 215, 80 within the UITableViewCell, but relative to the UIView they should be more like 260, 165.  How do I convert between the two?</p>
  
  <p>Here's what I've tried:</p>
  
  <pre><code>[[self.view superview] convertPoint:button.center fromView:button];  // fail
  [button convertPoint:button.center toView:self.view];  // fail
  [button convertPoint:button.center toView:nil];  // fail
  [button convertPoint:button.center toView:[[UIApplication sharedApplication] keyWindow]];  // fail
  </code></pre>
  
  <p>I could do it the hard way by looping through all of the button's superviews and adding up the x and y coordinates, but I suspect that's overkill.  I just need to find the right combination of covertPoint settings.  Right?</p>