- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGPathRef path = CGPathCreateWithRect(rect, NULL); [[UIColor redColor] setFill]; [[UIColor greenColor] setStroke]; CGContextAddPath(context, path); CGContextDrawPath(context, kCGPathFillStroke); CGPathRelease(path); }
Although, I canβt say that this is less detailed than a stroke, and to fill in individual calls ...
source share