我有一个UIImageView,我可以通过拖动它在视图中移动它。UIImageView包含在我的主UIView中。我尝试确定的是用户停止拖动后UIImageView的中心点(CGPoint)。我有以下代码:
CGRect frame = _imageView.frame;
CGPoint newCenterPoint = _imageView.center;
NSLog(@"The old center point for the UIImageView is: %@", NSStringFromCGPoint(newCenterPoint));
newCenterPoin