iPhone离线阅读

发布于 2024-09-05 06:20:26 字数 567 浏览 8 评论 0原文

首先 - 我对 iPhone 应用程序开发还很陌生(3 个月)。我在一家提供内容管理系统的软件公司工作。我们的客户主要是杂志出版社。他们使用我们的软件在他们的主页上撰写文章。现在我们希望提供 iPhone 应用程序来配合我们的 cms。到目前为止,我已经完成的是一个 RSS 阅读器,它可以在列表视图中显示新发布的文章。用户选择一篇文章,然后被重定向到该文章的特殊格式的详细视图。下一步是添加离线阅读功能。我在互联网上上下搜索,但找不到任何类似的最佳实践。我知道一般有两种可能性:

  1. 将 uiwebview 的内容存储在 iPhone/iPad 本地(包括 css、图像、js 等)。需要重新编写基本的 html 才能使用下载的 css、图像和 js。另外,我还必须以某种方式编辑多页文章中后续页面的超链接 - 听起来工作量很大;)

  2. 在服务器端创建 PDF 并将其下载到移动设备。重新设计 RSS 源,使其指向本地保存的 pdf,而不是服务器上的网站。

我的问题是 - 更好的方法是什么?这两种可能性都有缺点吗?还有其他(简单;))方法来实现离线阅读功能吗?有没有我可能错过的操作方法?

谢谢大家!

first of all - I am quite new to iPhone App development (3 months). I am working for a software company that offers a content management system. Our customers are for the main part publishing houses for magazines. They use our software to write articles to their homepages. Now we want to offer iPhone Applications to go with our cms. What I have accomplished so far is an RSS reader that shows newly published articles in a list view. The user selects one article and is redirected to a specially formatted detail view of this article. The next step is to add offline reading capabilities. I have searched the internet up and down but couldn't find anything like a best practice for that. I get it that there are two possibilities in general:

  1. Store the contents of the uiwebview locally on the iPhone/iPad (including css, images, js and so on). There would be the need to rework the basic html to use the downloaded css, images and js. Also I would have to somehow edit hyperlinks to following pages in multipage articles - Sounds like a lot of work ;)

  2. Create a PDF on the server side and download that to the mobile device. Rework the RSS Source to point to the locally saved pdf instead of the website on the server.

My question is - what is the better way to go? Are there any downsides for either of the possibilities? Are there other (simple ;)) ways to implement offline reading features? Are there possibly any howto's that I could've missed?

Thanks y'all!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

メ斷腸人バ 2024-09-12 06:20:26

也许,您应该考虑第三种变体:创建一些服务器端 API 来获取/设置必要的数据,并创建使用此 API 的单独 iPhone 应用程序。

我认为iPhone应用程序应该更接近原生应用程序——这样你可以提供更方便的界面来管理任务——这对于iPhone用户来说会更常见,并且会整体考虑设备和移动平台的优缺点。

Maybe, you should think about the third variant: make some server-side API to get/set necessary data and create separate iPhone app that uses this API.

I think iPhone app should be closer to native apps - this way you can provide more convenient interface to manage tasks - it will be more usual for iPhone users and will take into account advantages and disadvantages of device and mobile platform in whole.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文