title: iOS: parse a URL into segments
body: <p>What's an efficient way to take an NSURL object such as the following:</p>
  
  <pre><code>foo://name/12345 
  </code></pre>
  
  <p>and break it up into one string and one unsigned integer, where the string val is 'name' and the unsigned int is 12345?</p>
  
  <p>I'm assuming the algorithm involves converting NSURL to an NSString and then using some components of NSScanner to finish the rest?</p>