How to determine appropriate file extension from MIME Type in Objective-C
<p>I'm using <code>NSData</code> object to store different kind of data. Object contains MIME format string as well. But in order to use [<code>UIDocumentInteractionController interactionControllerWithURL:]</code> method, I need to save the <code>NSData</code> object to the file system. </p>

<p>The problem is how to specify the file extension based on the MIME format?</p>