“Save to Files” on iOS (FMX)

可紊 提交于 2019-12-23 03:14:35

问题


I want to save email attachments to my app’s doc folder (C++ FMX app for iOS & Android). How do I register my app as a target?

The screen shots below show that an app on my phone named Termius is a target to save files to. I want my app to be a target like this. Just need user to get files into my app folder.

relayman


回答1:


Based on Sherlock70 tutoring i was able to easily add my app's Documents folder as a "save to files" target. I selected iOSDevice64 as my target platform and then went to "Project->Options->Application->Version Info" where i right-clicked and selected "Add Key" and added the UIFileSharingEnabled key and LSSupportsOpeningDocumentsInPlace key with their values set to true.

Now i can save an email attachment to my app's Document folder via "Save to Files". This link shows how you can then list the files in your Documents folder. Below is image showing what pops up when you click "Save to Files":

Note i'm working in Rad Studio 10.3 (C++Builder 10.3 Version 26.0.32429.4364).

UPDATE: At iOS 13 Apple has moved the "Save to Files" icon.

And here it is:



来源:https://stackoverflow.com/questions/56030724/save-to-files-on-ios-fmx

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