[Reading Notes] iOS-iCloud programming, Reading Notes ios-icloud
I. Apple cloud service-iCloud.
Apple spent $1 billion on iDataCenter, the resume center in North Carolina, which is 0.5 million square feet and one of the largest data centers in the United States.
2. Configure iCloud.
1. Create an App ID.
2. Create a configuration profile.
Iii. cloud Data Storage.
1. Cloud key-value data storage.
2. Notes for storing iCloud data.
4. Programming of cloud key value data storage.
1. Example: cloud key-value data storage design.
2. Configure the Xcode project.
3. Code implementation.
5. Programming of iCloud document storage.
1. Example: Programming Design of iCloud document storage.
2. Configure the Xcode project.
3. Custom document class.
4. Obtain the iCloud document directory.
5. Check the documents in the Ubiquity container.
6. Save the document.
7. Resolve document conflicts.
6. Use CoreData technology under iCloud.
We will consider using the SQLite database, but SQLite is a low-level Data persistence technology, and Core Data is a high-level Data persistence technology.
1. Example: iCloud Core Data programming technology.
2. Use Xcode to create a Core Data project.
3. Create a persistent Storage Coordinator.
4. Create the managed object context.
5. Merge the cloud and local data.
Reference: iOS network programming and cloud applications-Best Practices