Search code examples
iosxcodeswiftswift2shared-directory

How to hide sqlite files in shared folder in Xcode


I make application with shared folder. User can to save some data in Core Data. I know that it saved in sqlite and it shown in the shared folder. I want that user doesn't see it. How can I hide this sqlite files in shared folder that user will not delete they via iTunes? enter image description here


Solution

  • You can add a period in front of the file name to make it hidden.

    Just rename it from

    whatever.sqlite
    

    to

    .whatever.sqlite