| Paste number 96694: | untitled |
| Pasted by: | dcope |
| When: | 1 year, 10 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+22LY |
| Channel: | #giantrobot |
| Paste contents: |
- (void)drawRect:(CGRect)rect {
// Create path, clip path
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context);
CGMutablePathRef path = CGPathCreateMutable();
CGPathAddRect(path, NULL, CGRectMake(1.0f, 1.0f, 50.0f, 50.0f));
CGContextSetLineJoin(context, kCGLineJoinMiter);
CGContextSetLineCap(context, kCGLineCapSquare);
CGContextSetLineWidth(context, 1.0f);
CGContextSetStrokeColorWithColor(context, [[UIColor redColor] CGColor]);
CGContextStrokePath(context);
CGContextAddPath(context, path);
CGPathRelease(path);
CGContextRestoreGState(context);
}This paste has no annotations.