SandBoxPathFile, sandboxie
// Obtain the sandbox directory of the application
NSArray * array = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES );
NSString * path = [array objectAtIndex: 0];
NSLog (@ "% @", path );
// Each application has its own sandbox directory, and applications cannot access the sandbox directories.
// Logs, Libray, and temp under the sandbox directory
// Files under the Documents directory will be backed up to the server and restored to the mobile phone together during itunes backup and recovery. files created in the program must be stored in the Documents directory.
// Libray stores the system library, and applications cannot use the Libray directory.
// Store temporary files in the tmp directory. When you restart the directory, all files in the tmp directory will be deleted.
NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: @ "a", @ "B", nil];
NSString * sandBoxPathFile = [NSString stringWithFormat: @ "% @/abc. plist", path];
// Write abc. plist to the Documents file in the sandbox directory of the application
[Dict writeToFile: sandBoxPathFile atomically: YES];
// Read the file
NSDictionary * readDict = [[NSDictionary alloc] initWithContentsOfFile: sandBoxPathFile];
NSLog (@ "% @", readDict );