CGContextRef ctx = UIGraphicsGetCurrentCont
ext();
//
//找到各个角点
//
CGPoint p_0_0 = CGPointMake([self offsets].width, [self offsets].height);
//
CGPoint p_0_1 = CGPointMake([self offsets].width + [self size].width, [self offsets].height);
//
CGPoint p_1_0 = CGPointMake([self offsets].width, [self offsets].height + [self size].height);
//
CGPoint p_1_1 = CGPointMake([self offsets].width + [self size].width, [self offsets].height + [self size].height);
//
CGContextMoveToPoint(ctx, p_1_0.x , p_1_0.y - CR_RADIUS * 2);
//
CGContextAddArcToPoint(ctx, p_0_0.x, p_0_0.y, p_0_0.x + CR_RADIUS*2, p_0_0.y, CR_RADIUS);
//
CGContextAddArcToPoint(ctx, p_0_1.x, p_0_1.y, p_0_1.x, p_0_1.y
+ CR_RADIUS*2, CR_RADIUS);
//
CGContextAddArcToPoint(ctx, p_1_1.x, p_1_1.y, p_1_1.x - CR_RADIUS*2, p_1_1.y, CR_RADIUS);
//
CGContextAddArcToPoint(ctx, p_1_0.x, p_1_0.y, p_1_0.x, p_1_0.y - CR_RADIUS*2, CR_RADIUS);