UIFileSharingEnabled (Boolean - iOS) Specifies whether the app shares files through iTunes. If this key is YES, the app shares files. If it is not present or is NO, the app does not share files. Apps must put any files they want to share with the user in their <Application_Home>/Documents directory, where <Application_Home> is the path to the app’s home directory.
In iTunes, the user can access an app’s shared files from the File Sharing section of the Apps tab for the selected device. From this tab, users can add and remove files from the directory.
In iOS 11 and later, if both this key and the LSSupportsOpeningDocumentsInPlace key are YES, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a Document Browser. Users can open and edit these document in place.
This key is supported in iOS 3.2 and later.
LSSupportsOpeningDocumentsInPlace (Boolean - iOS) When set to a value of YES, enables your app to open the original document from a file provider, rather than a copy of the document. The app can access documents from the system’s local file provider, the iCloud file provider, and any third-party File Provider extensions that support opening documents in place.
The URL for a document opened in place is security-scoped. For information about working with security-scoped URLs and bookmarks, read the overview in NSURL Class Reference and read Document Provider in App Extension Programming Guide.
Important: When opening a document in place, other processes can modify the document at any time. Therefore, you must coordinate your access to the document using either a UIDocument subclass or NSFilePresenter and NSFileCoordinator objects.
In iOS 11 and later, if both this key and the UIFileSharingEnabled key are YES, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a document browser. Users can open and edit these document in place.
- 版权声明：自由转载-保持署名-非商用-非衍生 ( CC BY-NC-ND 4.0 )