Skip to content

Instantly share code, notes, and snippets.

@xdream86
Created August 25, 2013 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdream86/6331748 to your computer and use it in GitHub Desktop.
Save xdream86/6331748 to your computer and use it in GitHub Desktop.
CGMutablePathRef thePath = CGPathCreateMutable();
CGPathMoveToPoint(thePath, NULL, 15.0f, 10.0f);
CGPathAddQuadCurveToPoint(thePath, NULL, 155.0f, 450.0f, 295.0f,15.0f);
CGContextBeginPath(theContext);
CGContextAddPath(theContext, thePath);
CGContextSetStrokeColorWithColor(theContext, [UIColor greenColor].CGColor);
CGContextSetLineWidth(theContext, 3);
CGContextStrokePath(theContext);
CFRelease(thePath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment