iOS sandbox
Each iOS app has its own app sandbox, the app sandbox is the file system directory, and by default iOS apps only have access to their own sandbox
Extenaion is a new open-iOS8 extension mechanism for several fixed system regions, which can compensate to some extent the limitations of iOS sandbox mechanism to inter-application communication.
Application Package:
Documents Persistent Data
TMP Temp Directory
Library
Cache caching
Preferences configuration Information \sqlite
How to obtain a sandbox path
1, the path of the sandbox
2. Documents Path
3. TMP path
4. Library Road
//Get directory//Mac User root directory/users/cloudwalk//ios/users/cloudwalk/library/developer/coresimulator/devices/6b973e5d-1f17-488e-bcf5-bc6c3456b220/data/ Containers/data/application/e1e7c33a-b603-46ce-b2dc-c8f578a698f0//Sandbox root directoryNSString *sandboxpath =nshomedirectory (); NSLog (@"Sandboxpath =%@", Sandboxpath); //Documents Path// //nssearchpathfordirectoriesindomains return Absolute path//Nsdocumentationdirectory represents the document directory where the sandbox is obtained /*Mac Gets the "/users/cloudwalk/library/documentation" IOS get "/users/cloudwalk/library/developer/coresimu lator/devices/6b973e5d-1f17-488e-bcf5-bc6c3456b220/data/containers/data/application/ E8511606-e87e-4a69-9924-ec0c0549dc09/library/documentation "*/Nsarray*paths =nssearchpathfordirectoriesindomains (Nslibrarydirectory, Nsuserdomainmask, YES); NSLog (@"%@", paths); NSString*documentpath =[Paths Lastobject]; NSLog (@"paths =%@", documentpath)
iOS Sandbox (sandbox)