๐Ÿ—ƒ๏ธFileManager

document directory vs. bundle resources

  • document directory: user contents, read/write.

  • bundle resources: app files, readonly.

  • Apps on iOS are constrained to a sandbox, theyโ€™ve got no access to system files.

  • Files on iOS have a path, but you usually only work with a URL object that contains that path.

all iOS apps are sandboxed, which means they run in their own container with a hard to guess directory name. As a result, we canโ€™t (and shouldnโ€™t try to) guess the directory where our app is installed, and instead need to rely on Appleโ€™s API for finding our appโ€™s documents directory.

๐Ÿ‘‰ Paul โŸฉ Writing data to the documents directory

Last updated