Introduction
For security reasons, the sandbox mechanism of the iOS system requires that each app can access only the files under the current sandbox directory (with exceptions, such as accessing contacts, albums, etc. in the case of user authorization), which shows the closeness of the iOS system. In development, data storage functions are often needed, such as file access, archive files and so on.
Sandbox directory Structure
Each app has a similar directory structure underneath the sandbox ( Apple official documentation )
Each app's files are isolated
detailed description of each file in the sandbox
1 -(void) sandBox {2 nsstring *path = nshomedirectory (); 3 NSLog (@ "path:--------->%@", path); 4 5 }
Promise Result:
2018-03-09 23:08:22.175225+0800 blocktest[778:26152] path:--------->
Copy the address, click Finder, key combination: Command+shift+g, you can get:
Sandbox (sandbox)