iOS Sandbox (sandbox)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.