iOS 如何实现打开和下载EXCEL jpg格式等附件,急急急!
巴扎黑
巴扎黑 2017-04-17 17:48:15
0
3
485

如何实现像手机QQ一样下载并打开附件,下载的文件只能在应用内打开吗?

巴扎黑
巴扎黑

reply all(3)
黄舟

Pictures can be integrated into a picture browser.
For excel, if it is not the main function of your app, QuickLook should be enough.
If you feel that QuickLook is not powerful enough, it is recommended to use a third-party software to open it. After all, what you mentioned here is an attachment. Since it is an attachment, there should be many different formats.
If you are developing using a third party, you can use TTOpenInAppActivity, which is very convenient.
If you plan to integrate it yourself, there are some open source tools in Github that can support processing.

https://github.com/search?l=&o=desc&q=excel+language%3AObjective-C&ref=advsearch&s=stars&type=Repositories&utf8=%E2%9C%93

Peter_Zhu

You can use the Quick Look framework officially provided by Apple to preview these files, or you can use other apps to open and process the files through the provided interface. For details, please refer to this article of mine, short book --- Preview and share through UIActivityViewController

大家讲道理

How to add a file management function to manage files downloaded to the sandbox

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template