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