The role of folders in the sandbox mechanism

Source: Internet
Author: User

  1. 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.
  2. 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)
  3. Note: Files that require read and write operations, such as database files, must be placed in a sandbox
  4. 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

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.