title: How to extract and remove scheme name from NSURL?
body: <p>What is proper way to extract and remove scheme name and <code>://</code> from a <code>NSURL</code>?</p>
  
  <p>For example:</p>
  
  <pre><code> note://Hello  -&gt;  @"Hello"
   calc://3+4/5  -&gt;  @"3+4/5"
  </code></pre>
  
  <p>so</p>
  
  <pre><code>NSString *scheme = @"note://";
  NSString *path   = @"Hello";
  </code></pre>
  
  <p>for later use in:</p>
  
  <pre><code>[[NSNotificationCenter defaultCenter] postNotificationName:scheme object:path];
  </code></pre>