Skip to content

Instantly share code, notes, and snippets.

@steipete
Created March 15, 2012 09:16
Show Gist options
  • Save steipete/2043134 to your computer and use it in GitHub Desktop.
Save steipete/2043134 to your computer and use it in GitHub Desktop.
//// Bezier Drawing
UIBezierPath* bezierPath = [UIBezierPath bezierPath];
[bezierPath moveToPoint: CGPointMake(31, 30.5)];
[bezierPath addLineToPoint: CGPointMake(41, 22.5)];
[bezierPath addLineToPoint: CGPointMake(41, 36.5)];
[bezierPath addLineToPoint: CGPointMake(31, 30.5)];
[bezierPath closePath];
[[UIColor blackColor] setFill];
[bezierPath fill];
//// Rectangle Drawing
UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(48, 23, 3, 13)];
[[UIColor blackColor] setFill];
[rectanglePath fill];
//// Rectangle 2 Drawing
UIBezierPath* rectangle2Path = [UIBezierPath bezierPathWithRect: CGRectMake(44, 28, 11, 4)];
[[UIColor blackColor] setFill];
[rectangle2Path fill];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment