title: How to smooth lines in ipad
body: <p>i have recorded each point when user touch begin move end the ipad,and then i add these points in to a <strong>CGMutablePathRef</strong> called <strong>path</strong>, then i use following code to draw the lines(path) user touched in ipad.</p>
  
  <pre><code>CGContextRef context = UIGraphicsGetCurrentContext();
  CGContextSetLineCap(context, kCGLineCapRound);
  CGContextSetLineJoin(context, kCGLineJoinRound);
  CGContextSetStrokeColorWithColor(context, [UIColor redColor]);
  CGContextSetLineWidth(context, 2);
  CGContextAddPath(context, path);
  CGContextStrokePath(context);
  </code></pre>
  
  <p>but these lines didn't look smooth, thanks for your help</p>