2010-01-17 46 views

回答

6

drawRect:方法做:

- (void)drawRect:(CGRect)rect 
    { 
    CGContextRef ctx = UIGraphicsGetCurrentContext(); 
    UIGraphicsPushContext(ctx); 
    CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 1.0f); // white color 
    CGContextFillEllipseInRect(ctx, CGRectMake(10.0f, 10.0f, 100.0f, 100.0f)); // a white filled circle with a diameter of 100 pixels, centered in (60, 60) 
    UIGraphicsPopContext(); 
    } 
+0

許多感謝您的慷慨時間來幫助。 – 2010-01-17 23:53:33