title: Loading an ePub -- simple ePub Reader question
body: <p>I'm developing a simple epub reader on iPhone but been wondering how to go about loading it. I know reading files such as a PDF is somewhat straightforward because it's one file in itself and can be loaded using UIWebView or CoreGraphics. It's unlike ePub which requires a bit more work to get(parsing xml's ...etc) the contents since it's essentially a ZIP file. </p>
  
  <p>Now the way I thought of doing it is by doing the following. But I'm not sure if it's the right way:</p>
  
  <ol>
  <li>Download the book.epub file to UserDomain as in this example</li>
  <li>Unzip book.epub file to create a book dir where all the contents will be</li>
  <li>From the created book dir, access the files and do the necessary(retrieve, parse.. etc).</li>
  <li>When the epub is unloaded or application's been closed, delete unzipped version -- the book dir</li>
  <li>Do the cycle from unzipping when opening the book.epub again.</li>
  </ol>
  
  <p>Unless I can access ePub file contents directly, I guess there's no need to unzip them... which is unlikely because it's a ZIP.</p>
  
  <p>Thanks in advance for any help. :)</p>
  
  <p>Kind regards,
  oonoo</p>