Paste number 96695: updated

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:
Raw Source | XML | Display As
- (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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.