title: Draw straight line and create curve line dragging line
body: <p>I would like to create an instrument for my app that draws straight line first and on the second touch and move user can create an adjustable curve line.
  So the idea is to set middle point of curve line when user touches and moves second time.</p>
  
  <p>And i have no idea how to check second touch and work with previous path. </p>
  
  <p>This method i use to draw simple line </p>
  
  <p>Thank you! </p>
  
  <pre><code>- (void)setInitialPoint:(CGPoint)firstPoint
  {
  self.firstPoint  = firstPoint;
  //[self moveToPoint:firstPoint]; //add yourStartPoint here
  ///[self addLineToPoint:endPoint];
  }
  
  - (void)moveFromPoint:(CGPoint)startPoint toPoint:(CGPoint)endPoint
  {
  self.lastPoint = endPoint;
  
     //  [self addLineToPoint:self.lastPoint];// add yourEndPoint here
  </code></pre>
  
  <p>}</p>
  
  <pre><code>- (void)draw { 
     UIBezierPath *path = [UIBezierPath bezierPath];
  //draw a line
  
  [path  moveToPoint:self.firstPoint]; //add yourStartPoint here
  [path addLineToPoint:self.lastPoint];// add yourEndPoint here
  
  [self.lineColor setStroke];
  
  [path setLineWidth:3.0];
  
   [path stroke];
  }
  </code></pre>