- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
// Border
CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextFillEllipseInRect(context, self.bounds);
// Body
//草绿色
CGContextSetRGBFillColor(context, 74.0/25
5.0, 158./255.0, 163./255.0, 1.0);
//蓝色
// CGContextSetRGBFillColor(context, 20.0/255.0, 111.0/255.0, 223.0/255.0, 1.0);
CGContextFillEllipseInRect(context, CGRectInset(self.bounds, 1.0, 1.0));
// Checkmark
CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextSetLineWidth(context, 1.2);
CGContextMoveToPoint(context, 6.0, 12.0);
CGContextAddLineToPoint(context, 10.0, 16.0);
CGContextAddLineToPoint(context, 18.0, 8.0);
CGContextStrokePath(context);
}