title: Trying to find new center point of UIImageView after it is moved in iOS
body: <p>I have a UIImageView that I am able to move in my View by dragging it.  The UIImageView is contained inside my main UIView.  What I am trying to determine is the center point (CGPoint) of the UIImageView after the user has stopped dragging it.  I have the following code:</p>
  
  <pre><code>CGRect frame = _imageView.frame;
  CGPoint newCenterPoint = _imageView.center;
  
  NSLog(@"The old center point for the UIImageView is: %@", NSStringFromCGPoint(newCenterPoint));
  
  newCenterPoint.x = frame.origin.x + frame.size.width/2;
  newCenterPoint.y = frame.origin.y + frame.size.height/2;
  
  NSLog(@"The new center point for the UIImageView is: %@", NSStringFromCGPoint(newCenterPoint));
  </code></pre>
  
  <p>With my above code, I notice that the values for newCenterPoint are not updated. Can anyone see what it is I am doing wrong, and what I can do to find the center of the UIImageView after the user has finished moving it?</p>
  
  <p>Thanks in advance to all who reply. </p>