Upvote:1

Aprove answer
    CGPoint movedPoint = [touch locationInView:self];

    CGFloat deltaX = movedPoint.x - _startTouchPoint.x;
    CGFloat deltaY = movedPoint.y - _startTouchPoint.y;
    CGPoint center = self.center;
    center.x += x;
    center.y += y;
    self.center = center;

Credit Goes to: stackoverflow.com

Related question with same questions but different answers