//inside init
_color = [UIColor orangeColor];
self.backgroundColor = [UIColor clearColor];
self.clearsContextBeforeDrawing = NO;
//inside drawRect
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSaveGState(ctx);
CGContextAddEllipseInRect(ctx, rect);
CGContextSetFillColorWithColor(ctx,
_color.CGColor);
CGContextFillPath(ctx);
CGContextRestoreGState(ctx);
背景が透明ではなく白く表示され続けます。楕円も色が変わらず、黒く表示されます。見てくださる方、よろしくお願いします。