title: How to get the duration of an audio file in iOS?
body: <pre><code>NSDictionary* fileAttributes = 
      [[NSFileManager defaultManager] attributesOfItemAtPath:filename 
                                                       error:nil]
  </code></pre>
  
  <p>From the file attribute keys, you can get the date, size, etc. But how do you get the duration?</p>