How to share files between 2 local ios apps without url scheme or external server?

空扰寡人 提交于 2019-12-03 19:42:29

问题


I have 2 local app "A" and "B". I want that the application "A" call the application "B" and "B" send a response to "A" with a file.

Url scheme is a good solution to call Application "B" but it's a bad solution to send files to "A".

How do I send a file from one application to another without url scheme and without external server ?


回答1:


Other than URL option, you have an best option to use iOS keychain. See this article.

There are couple of other options mentioned here.

Another option is to use iCloud APIs.

One more, copy-paste data between Apps using UIPasteboard.

BTW what's the problem with URL solution? Apple suggest you to use URL to share data between different Apps.




回答2:


I've used a combination of custom URL schemes and a UIPasteboard. I recently posted a full tutorial at http://enharmonichq.com/sharing-data-locally-between-ios-apps/.



来源:https://stackoverflow.com/questions/12561471/how-to-share-files-between-2-local-ios-apps-without-url-scheme-or-external-serve

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