title: how to get screen location of UIImageview in a UITableViewCell
body: <p>I have a <code>UITableViewCell</code> that contains a <code>UIImageView'.
  I need to display a 2nd</code>UIImageView<code>that is centered on the 1st one.
  (this 2nd UIImageView is not in the cell, but to be displayed on the screen coordinate system, so that it can be dragged outside of the</code>UITableView<code>that has the</code>UITableViewCell`.</p>
  
  <p>I can get the <code>x,y</code> of the 1st <code>UIImageView</code>, but this <code>x,y</code> is relative to the cell.</p>
  
  <p>How do I convert this <code>x,y</code> to be relative to the screen, to be used to initially position the 2nd <code>UIImageView</code> centered over the 1st?</p>
  
  <p>I have tried:
  CGPoint screen_point = [device_icon_UIImageView     convertPoint: device_icon_UIImageView.center   toView:nil]; 
  ...but screen_point is the relative x,y within the cell (615,85) and is not the x,y center of the device_icon_UIImageView in the screen (window) coordinate system (should be about 530,280).</p>
  
  <p>THE CODE...................................</p>
  
  <p>.h......................</p>
  
  <p>@interface ataglance_central_controller : UIViewController<br>
  {
      UIImageView* e_fairy_UIImageView;
  }
  @property (nonatomic,retain) UIImageView* e_fairy_UIImageView;</p>
  
  <p>.m..............................................
  @interface ataglance_central_controller () 
  {
  }
  @end
  @synthesize e_fairy_UIImageView;</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  ...
  </code></pre>
  
  <p>THIS IS THE 1ST UIIMAGEVIEW, IN THE CELL:................
      UIImageView* device_icon_UIImageView        = (UIImageView*)[cell.contentView viewWithTag: BASE_UIIMAGEVIEW_TAG +    ui++ ];
      ...</p>
  
  <pre><code>self.e_fairy_UIImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed: @"E-fairy.png" ]];
      self.e_fairy_UIImageView.center =  screen_point;
  </code></pre>
  
  <p>[self.e_fairy_UIImageView setContentMode: UIViewContentModeScaleAspectFit];
  [self.view addSubview: self.e_fairy_UIImageView];</p>
  
  <p>...displays <code>e_fairy_UIImageView</code> at bottom of screen, but cell's table is in upper half of screen.</p>