user5175878
user5175878

Reputation:

Itunes file sharing and Adding open in function support for apps in swift

How can I use iTunes file sharing and add the Open IN function support to my app and use them? My file formats are mp3.

Upvotes: 0

Views: 1306

Answers (1)

Pradeep K
Pradeep K

Reputation: 3661

  1. Add the UIFileSharingEnabled key to your app’s Info.plist file, and set the value of the key to YES.
  2. Put whatever files you want to share in your app’s Documents directory.
  3. When the device is plugged into the user’s computer, iTunes displays a File Sharing section in the Apps tab of the selected device.
  4. The user can add files to this directory or move files to the desktop.

To allow listing your app has a candidate to open mp3 add the mp3 file extension to the URL Types section in your project's Info plist property area.

Upvotes: 4

Related Questions