About iCloud Miscellaneous

Source: Internet
Author: User

ICloud
Storage sorry, I also know that there is no code or truth, but I have not yet upgraded to the SDK and cannot use it for a demo.
When using iCloud, you must first confirm whether you want to use document storage or key-value data storage. Document storage: to store the data of your applications, whether your applications are created and managed by users, or accessed by users in other ways. (Well, it's really hard to translate.) documents are stored for user-Visible data, such as documents created by users, however, it is equally useful for documents created by your applications. Key-value storage is used to share non-critical configuration information between running applications. For example, you may store the byte that stores the behavior of preferences and other secondary applications. You should avoid using key-value storage to store directly visible data. Up to 64 KB of key-value storage is allowed. The document store calls urlforubiquitycontaineridentifier to determine whether the key-value storage is available.Synchronize.
(When adopting iCloud, the first demo-you have to make is whether
To use document storage or key-value data storage. document storage is intended for storing your app's data, whether that data is created and managed privately by your app or is created by the user and accessible by other means. document storage is definitely
Intended for apps that work with user-facing data, such as user-created documents, but it is also useful for managing the data files your app creates internally too.
Key-value storage is intended more for noncritical configuration data
That you want to share among the running instances of your app. for example, you might use key-value storage to store preferences and other bits of configuration data that are secondary to your app's behavior. you shoshould avoid using key-value storage to save
User-facing data .)

 

Another design consideration is how to plan and incorporate the support of your application's user interface iCloud. Especially for files, it is possible that you need to inform the user of the document status, for example, whether it is a download or version conflict, the problem that needs to be solved ,. In these cases, you should consider adding some inconspicuous elements to your user interface to send the corresponding information to the user. For more information about updating your user interface http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/iCloud/iCloud.html



Give your app The right to iCloud
  1. Select target in xcode
  2. Select the summary Tab
  3. In the entitlements unit, open the Enable entitlement selection box (see the bottom part)

After selecting the project name, a file named. entitlements will appear. When you choose, the program automatically configures document storage and key-value storage for your application.

Each right contains a key whose value is one or more strings containing the identifier. A string containing the identifier identifies a directory containing your app files in iCloud. Xcode uses the following methods to Configure permissions: (to be continued)

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.