Search code examples
iosobjective-cquartz-2d

How can I draw this complex shape using iOS Quartz 2D drawing?


I know how to draw simple shapes - rectangles, ellipses and lines etc. using iOS Quartz 2D drawing.

Just now I'm trying to draw a relatively complex shape though, the tail of a musical quaver:

Quaver

Can anybody suggest a good way to approach this problem?


Solution

  • Can you design the quaver in a graphics program like Inkscape, export as an SVG, and then render using SVGKit? From a development level, it would be much easier to maintain something that you can visually update, rather than trying to draw a shape with code.