Skip to content

Instantly share code, notes, and snippets.

@Shehryar
Shehryar / PathPrettyPrint.m
Created February 4, 2015 20:40
Prints out the CGPoint human readable representation of a UIBezierPath to console
- (void)someDrawingMethod
{
// Whatever drawing code
CGMutablePathRef pathRef = CGPathCreateMutable();
// More drawing code
UIBezierPath *path = [UIBezierPath bezierPathWithCGPath:pathRef];
CGpathRelease(pathRef);
CGPathApply(path.CGpath, NULL, outPutCGPath);
}