title: Using UIPanGesture store the location of the image moved to new location in the UIView in Objc
body: <p>I am moving UIImage in a view. Now when the image is moved to new position I want to keep that image in that position and store that in an array. How can I achieve this ?</p>
  
  <p>The code for moving image using pan gesture is :-</p>
  
  <pre><code>- (void) handlePan: (UIPanGestureRecognizer *) recogniser {
      CGPoint point = [recognizer locationInView:_backImage];
  
      //Only allow movement up to within 100 pixels of the right bound of the screen
      if (point.x &lt; [UIScreen mainScreen].bounds.size.width - 100) {
  
          CGRect newframe = CGRectMake(point.x, point.y, smallImageViewWidth, smallImageViewHeight);
          _centreImage.frame = newframe;
      }
  }
  </code></pre>