- First of all, what is a sandbox?
A: In the iOS app, each app will have its own folder (this folder is called sandbox), the general sandbox contains pictures, plist, TXT, NIB, recording, caching and other files.
- Shahe mechanism:
A: iOS apps can only access things within folders that they create, and cannot access other areas. Also why there is no Trojan horse on Mac (there is no Trojan horse can infect other applications AH)
- Note: Files that require read and write operations, such as database files, must be placed in a sandbox
- Directory Structure and description
The sandbox contains several folders! (created by default)
- Documents: typically used to store files created in an application, such as database files, or data that is browsed in a program, and backup will back up this folder content
- Library: Default settings and status information for storage apps
- Library/cache: Used to store cache files, this folder will not be deleted when the app exits
- TMP: Storing files that are created temporarily
The role of folders in the sandbox mechanism