Created
November 16, 2011 22:47
-
-
Save codeswimmer/1371752 to your computer and use it in GitHub Desktop.
iOS: draw filled circle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(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