Is it possible to share files between different applications though iCloud? For example may I export epub book from my app to make it appear in iBooks or export a document to Pages from my application? And is there any way to get this files or pictures from photo stream in my application?
是否可以通过iCloud在不同的应用程序之间共享文件?例如,我可以从我的应用程序导出epub book以使其显示在iBooks中或将文档导出到我的应用程序中的Pages吗?有没有办法从我的应用程序中的照片流中获取这些文件或图片?
1 个解决方案
#1
1
You won't be able to write files to another's application sandbox, precisely because the Sandbox won't let you write outside your app's container. What you can do is invoke a save panel to let the user export the file as an ebook wherever he wants. He can then open the file in Pages and move it to the cloud there.
您将无法将文件写入另一个应用程序沙箱,正是因为Sandbox不允许您在应用程序的容器外写入。你可以做的是调用一个保存面板让用户将文件导出为电子书,无论他想要什么。然后他可以在Pages中打开文件并将其移动到那里的云端。
And no, there is no API to access your Photo Stream.
不,没有API可以访问您的Photo Stream。