Skip to content

Instantly share code, notes, and snippets.

@codeswimmer
Created November 16, 2011 22:47
Show Gist options
  • Save codeswimmer/1371752 to your computer and use it in GitHub Desktop.
Save codeswimmer/1371752 to your computer and use it in GitHub Desktop.
iOS: draw filled circle
-(void)fillCircleCenteredAt:(CGPoint)center
{
UIBezierPath *path = [UIBezierPath bezierPath];
[path addArcWithCenter:center
radius:50.0
startAngle:0.0
endAngle:2.0 * M_PI
clockwise:NO];
[path fill];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment