iPhone离线阅读
首先 - 我对 iPhone 应用程序开发还很陌生(3 个月)。我在一家提供内容管理系统的软件公司工作。我们的客户主要是杂志出版社。他们使用我们的软件在他们的主页上撰写文章。现在我们希望提供 iPhone 应用程序来配合我们的 cms。到目前为止,我已经完成的是一个 RSS 阅读器,它可以在列表视图中显示新发布的文章。用户选择一篇文章,然后被重定向到该文章的特殊格式的详细视图。下一步是添加离线阅读功能。我在互联网上上下搜索,但找不到任何类似的最佳实践。我知道一般有两种可能性:
将 uiwebview 的内容存储在 iPhone/iPad 本地(包括 css、图像、js 等)。需要重新编写基本的 html 才能使用下载的 css、图像和 js。另外,我还必须以某种方式编辑多页文章中后续页面的超链接 - 听起来工作量很大;)
在服务器端创建 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:
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 ;)
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许,您应该考虑第三种变体:创建一些服务器端 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.