Right place to store the application data in IOS

后端 未结 3 957
生来不讨喜
生来不讨喜 2021-01-15 00:58

Currently i was saving my application data (Media) to the CacheDirectory i.e

/var/mobile/Applications/BEAFC76C-C450-4A3A-9765-A0385A9580F3/Li

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-15 01:24

    Use Documents (NSDocumentDirectory) for files you wish to share via iTunes.

    Use Application Support (NSApplicationSupportDirectory) for files you wish to hide from the user but still be backed up and never deleted by the OS.

提交回复
热议问题