Skip to content

Instantly share code, notes, and snippets.

@xdream86
Created August 25, 2013 03:11
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/6331753 to your computer and use it in GitHub Desktop.
Save xdream86/6331753 to your computer and use it in GitHub Desktop.
CGMutablePathRef thePath = CGPathCreateMutable();
CGPathMoveToPoint(thePath,NULL,15.0f,15.f);
CGPathAddCurveToPoint(thePath,NULL,15.f,250.0f,295.0f,250.0f,295.0f,15.0f);
CGContextSetStrokeColorWithColor(theContext, [UIColor greenColor].CGColor);
CGContextBeginPath(theContext);
CGContextAddPath(theContext, thePath);
CGContextSetLineWidth(theContext, 5);
CGContextStrokePath(theContext);
CFRelease(thePath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment