title: How to import/parse  SVG into UIBezierpaths, NSBezierpaths, CGPaths?
body: <p>I am trying to import paths from a vector drawing program into the ios environment.  I would like to get them into CGpaths or UIbezierpaths.  I am most interested in importing paths from adobe illustrator.   The best way seems to save as an svg and then import.  </p>
  
  <p>I have found some resources for parsing exported SVG files that describe the paths.  However, everything I have found only deals with absolute paths and not relative paths.  The path below has capital C's and lowercase C's.  I know how to parse the capital C (absolute paths) but I have no idea how to parse the lowercase c's (relative paths)  </p>
  
  <p>I am looking for help with writing a parser for importing svg files into ios/cocoa.  I think there is a big need for this judging by searching the internet for weeks.</p>
  
  <p>Here, is an example of a path I would like to import into my iphone app.  I am not looking to import the image, I want the path itself.  So, I can manipulate it.  Any help would be much appreciated.</p>
  
  <pre><code>x="0px" y="0px" width="320px" height="436px" viewBox="-1.4 -0.5 320 436"
  
   d="M294.1,116C290.6,1.4,170.9,0.4,159.6,0.5
  C148.3,0.4,28.7,1.4,25.2,116c-3.7,120.3-49.6,141.4-5.9,233.9c41.3,87.4,130.7,87,140.4,86.7c9.7,0.3,99.1,0.8,140.4-86.7
  C343.7,257.4,297.8,236.3,294.1,116z
  </code></pre>
  
  <p>If this was all absolute paths I would be able to solve this now.  It is the relative (i.e. lowecase (c) paths) that are really confusing me.</p>