Best approch for creating ePub reader similar to iBook or Stanza application [closed]

烂漫一生 提交于 2019-12-03 08:53:05

Books in ePub format are HTML with some meta-data. Different generators create differently formatted HTML. The work needed to implement a parser capable of displaying all ePub is a mammoth task! If you do not want to use a web view then your project is doomed from the start.

Stanza, Apple's iBooks, my own ePub reader for iPad, and any other ePub reader I know of all use a standard Web view as the basis. On top of that you need allot of CSS and Javascript to tweak all mutations of ePubs there is.

Your approach should be to learn how to parse the ePub data and bundle that with an app that displays the content as well as handles all the other features. Probably want to look at Core Text.

Actually you do can write an ePub reader without an WebView, but you need to render everything on your own. You can find some open source epub reader for reference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!