title: How to manual trigger the touchesBegan value in iOS?
body: <p>I have a parent viewcontroller , and there have a subview(UIView). </p>
  
  <p>The subview(named xibSubView) is called other custom class(xib) file.</p>
  
  <p>When I click on the parent Viewcontroller, the subview(UIView) will motion to touch began position on the parent viewcontroller.</p>
  
  <p>The parent viewcontroller have </p>
  
  <pre><code> // UIViewcontroller.h file
    .....    
   @property (weak, nonatomic) IBOutlet XibSubView *xibSubView;
   .....
  </code></pre>
  
  <p>The below code is in the parent viewcontroller .m</p>
  
  <pre><code> -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
   {
      self.subViewConstraint.constant = touchLeftScreenPoint.x ;
      self.subViewConstraint.constant = touchLeftScreenPoint.y ;
  
   }
  
   -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
   {
   }
  
   -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
   {
   }
  </code></pre>
  
  <p>And the xib(subview-xibSubView) code have the same delegate method.</p>
  
  <pre><code> // The code is in the parent viewcontroller .m
   -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
   {
   }
  
   -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
   {
   }
  
   -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
   {
   }
  </code></pre>
  
  <p>In the xibSubView have much elements.</p>
  
  <p>One of the elements will motion to the click position in the subview(xibSubView).</p>
  
  <p>So I want to pass the parent viewcontroller touches into xibSubView.</p>
  
  <p>And manual call the touchBegan in the xibSubView let the element motion.</p>
  
  <p>So I should transform the parent viewcontroller touches  position to subview touches position.</p>
  
  <p>The subview  touches x position and y position  will subtract the viewcontroller width and height and manual call the touchbegan method.</p>
  
  <p>But I don't know how to changed the touches x, y values restore to touches.</p>
  
  <p>Then call the code:</p>
  
  <pre><code> [self.xibSubView touchesBegan:touches withEvent:event];
  </code></pre>
  
  <p>How can I change the NSSet touches x,y variable and restore to touches.</p>
  
  <p>Thank you very much.</p>