Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Add ability to delete files from my app using system menu (Settings->General->iPhone Storage)

Tags:

file

ios

system

I notice for some apps, you have the ability to delete data (stored) files from that app, using the system menu (Settings->General->iPhone Storage->AppName)

How can I add the ability to my app? Is it enabling permission, or do I have to write code too?

like image 910
Agreensh Avatar asked Oct 18 '25 12:10

Agreensh


1 Answers

You should make both of these raw keys true in the info.plist. then any files inside the documents folder will appear there.

UIFileSharingEnabled
LSSupportsOpeningDocumentsInPlace

they should be added like:

Demo

Note that now the user can access the files directly without using your app. (with a computer or using the Files app or etc.)

like image 190
Mojtaba Hosseini Avatar answered Oct 20 '25 03:10

Mojtaba Hosseini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!