title: How to get current touch point and previous touch point in UIPanGestureRecognizer method?
body: <p>I am new to iOS, I am using <code>UIPanGestureRecognizer</code> in my project. In which I have a requirement to get current touch point and previous touch point when I am dragging the view. I am struggling to get these two points.</p>
  
  <p>If I use <code>touchesBegan</code> method Instead of using <code>UIPanGestureRecognizer</code>, I could get these two points by the following code:</p>
  
  <pre><code>- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
      CGPoint touchPoint = [[touches anyObject] locationInView:self];
      CGPoint previous=[[touches anyObject]previousLocationInView:self];
  }
  </code></pre>
  
  <p>I need to get these two points in <code>UIPanGestureRecognizer</code> event fire method. How can I achieve this? please guide me.</p>