ios - After my app opens a file, keep a reference to the file so that I can open it again later -


I have to keep those files in my app indefinitely, even though the app is closed. Later, I want to play back any and all files that the user has ever opened in the app.

How can I allow the program to remember my app that the file which was opened in it, handle them without the permission of the past and other applications?

Actually, your app Never did not have the ability to track the sandbox of any other app - which violated the entire status of sandboxing. Until your app is notified for opening the file by hand, the file has already been copied (in your system) into your Docs directory's Inbox folder.

And it remains there (if you do not remove it yourself). So there is no problem entering it. This reference was given to you by the system when you continue to work! Of course you are free to copy it somewhere within the sandbox at that point. But the thing is that it is already in your sandbox, and you already have a reference to do one thing before it.

(But see that your app implements "File Sharing via iTunes" ["Supports iTunes File Sharing", UIFileSharingEnabled ], because in that case This document is the directory that has come up through iTunes, and thus can delete a file from the user inbox.)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -