title: How to curve balloon tail (simple triangle shape)
body: <p>I have a simple triangular shape (that serves as a balloon tail) which I'm trying to curve like the following:</p>
  
  <p><img src="https://i.stack.imgur.com/hbpAf.png" alt="enter image description here"></p>
  
  <p>I have the tail shape stored in a <code>CGMutablePathRef</code> and it's drawn as follows:</p>
  
  <pre><code>- (void) drawPaths
  {
      CGContextRef context = UIGraphicsGetCurrentContext();
  
      CGContextAddPath(context, self.mutablePath);
  
      CGPathRelease(mutablePath);
      CGColorRelease(fillColor);
      CGColorRelease(strokeColor);
  
  }
  </code></pre>
  
  <p>I am trying to make it so when I input some angle to this algorithm (say 45 degrees) that the tail rotates and curves much like the above photo. The rotation is obviously an easy transformation, but getting it to curve is what I'm struggling with. I realize that I probably need to use: <code>CGPathAddQuadCurveToPoint</code> however I'm having trouble understanding what to set as my control points and am getting unpredictable results. Even this brilliant post has left me clueless: <a href="https://stackoverflow.com/questions/16763695/given-a-cgpath-how-to-make-it-curve">Given a CGPath, how to make it curve?</a> </p>
  
  <p>Does anyone know how to do this?</p>