电子书阅读器 [英] epub reader

查看:141
本文介绍了电子书阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个epub阅读器,使用uiweb视图加载html文件.
我在阅读器中面临以下两个问题,

1.在加载.xhtml文件时,应用程序将崩溃,但.html页面可以完美加载,

2.加载整个页面的html内容,我想逐页显示内容,但不知道如何逐页显示内容,然后给出示例代码或想法

I have created one epub reader,using uiweb view to load the html files.
I am facing following two problems in my reader,

1.while loading .xhtml files application will crashed but .html page loads perfectly,

2.loading entire page of html content, i want to display the content page by page any know how to display the content page by page then give sample code or ideas

推荐答案

您好,

您可以做的是使用递归目录扫描,这样您就可以将所有文件放在一个数组中,然后逐个读取它们,还可以在单​​击项目时在左侧的列表框中预览扫描的项目,您可以从数组中加载文件并以html格式读取.

崩溃解决方案,将xhtml重命名为html并返回.看看是否可行.

欢呼
Hi there,

What you can do is use recursive directory scan, so you a have all files in an array an then read them out one by one, also you can have the scanned items previewed in an listbox on the leftside, when you click on an item, you can load the file from the array and read it in html.

crash solution, rename xhtml to html and back. see if that works.

cheers


这篇关于电子书阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆