Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)drawRect:(CGRect)rect
- {
- UIBezierPath *bezierPath = [UIBezierPath bezierPath];
- [bezierPath addArcWithCenter:CGPointMake(self.frame.size.width, self.frame.size.height/2) radius:150 startAngle:0 endAngle:2 * M_PI clockwise:YES];
- CAShapeLayer *progressLayer = [[CAShapeLayer alloc] init];
- [progressLayer setPath:bezierPath.CGPath];
- [progressLayer setStrokeColor:[UIColor colorWithWhite:1. alpha:.2].CGColor];
- [progressLayer setFillColor:[UIColor colorWithRed:67.0/255.0 green:144.0/255.0 blue:246.0/255.0 alpha:1.0].CGColor];
- [progressLayer setLineWidth:.7 * self.bounds.size.width];
- [[self layer] addSublayer:progressLayer];
- // [self drawWheel];
- }
Add Comment
Please, Sign In to add comment