- (void)drawRect:(CGRect)rect {
// Drawing code
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [UIColor redColor].CGColor);
CGContextFillRect(context, rect);
CGContextSetRGBFillColor(context, 0.7, 0.7, 0.7, 0.9); // 填充顏色
CGContextFillRect(context, CGRectMake(10, 10, 80, 1)); // 填充的frame
}