iCloud for Developers: Automatically Sync Your iOS Data, Everywhere, All the Time (The Pragmatic Programmers) 🔍
Rocchi, Cesare The Pragmatic Programmers; Pragmatic Bookshelf, Pragmatic programmers, Dallas, Texas, 2013
英语 [en] · PDF · 5.0MB · 2013 · 📗 未知类型的图书 · 🚀/upload · Save
描述
Get up-to-date fast on the techniques you need get your applications iCloud-ready. With Apple's iCloud servers now available to developers, there's every reason to make synchronization a core feature of your product. You'll learn how to iCloud-enable the data formats you're most likely to use in an iOS application: key-value data, document-based data, and relational data. Using a simple grocery list application as an example, you'll find out how to configure any application to make the most of iCloud's capabilities.
Your app's users want their application data to be in sync as they switch from one device to another. Guided by iOS expert Cesare Rocchi, you'll start by learning how to configure an app and its resources for iCloud. Then, after a quick introduction to iCloud-supported data types, you'll work on using the simplest: key-value data.
Next, you'll find out how to get your document-based data (including media files), and even relational data working with iCloud. As you learn each new technique, you'll use it to synchronize yet another module of the book's sample app, Grocery, a simple shopping list that can be shared between two or more devices. You'll learn how to handle the kinds of conflicts likely to occur when you build apps that keep themselves in sync across phones and tablets, as well as how to deal with the notifications used by iCloud to broadcast changes as they occur.
As devices proliferate, synchronization is more important than ever. When you finish this book, you'll know how to make it a part of your own applications.
What You Need:
You should have Xcode 4.6.2 and iOS SDK 6.0 installed on your workstation. To write apps that interact with iCloud, you need to be a registered Apple developer. To test the synchronization of iCloud applications that you write, you'll need two iOS devices (either of which can be an iPhone, iPod, or iPad).
**
备用文件名
motw/iCloud for Developers_ Automatically Sync - Cesare Rocchi.pdf
备选作者
Cesare Rocchi
备用出版商
Pragmatic Programmers, LLC, The
备用版本
Pragmatic programmers, Dallas, TX, ©2014
备用版本
United States, United States of America
备用版本
1, PT, 2013
元数据中的注释
Memory of the World Librarian: Quintus
备用描述
Annotation Get up-to-date fast on the techniques you need get your applications iCloud-ready. With Apple's iCloud servers now available to developers, there's every reason to make synchronization a core feature of your product. You'll learn how to iCloud-enable the data formats you're most likely to use in an iOS application: key-value data, document-based data, and relational data. Using a simple grocery list application as an example, you'll find out how to configure any application to make the most of iCloud's capabilities. Your app's users want their application data to be in sync as they switch from one device to another. Guided by iOS expert Cesare Rocchi, you'll start by learning how to configure an app and its resources for iCloud. Then, after a quick introduction to iCloud-supported data types, you'll work on using the simplest: key-value data. Next, you'll find out how to get your document-based data (including media files), and even relational data working with iCloud. As you learn each new technique, you'll use it to synchronize yet another module of the book's sample app, Grocery, a simple shopping list that can be shared between two or more devices. You'll learn how to handle the kinds of conflicts likely to occur when you build apps that keep themselves in sync across phones and tablets, as well as how to deal with the notifications used by iCloud to broadcast changes as they occur. As devices proliferate, synchronization is more important than ever. When you finish this book, you'll know how to make it a part of your own applications. What You Need:You should have Xcode 4.6.2 and iOS SDK 6.0 installed on your workstation. To write apps that interact with iCloud, you need to be a registered Apple developer. To test the synchronization of iCloud applications that you write, you'll need two iOS devices (either of which can be an iPhone, iPod, or iPad)
备用描述
Cover 1
Table of Contents 6
Acknowledgments 8
Preface 9
Who Should Read This Book? 9
What’s in This Book? 10
How to Read This Book 10
Notes on Formatting 10
Online Resources 10
Requirements 10
Moving On 11
1. Preparing Your Application for iCloud 12
What Is iCloud? 13
What's Behind iCloud 14
Introducing the Grocery Application 16
Enabling Your Application for iCloud 17
Checking for iCloud Availability 23
Moving On 24
2. Working with Key-Value Data 25
iCloud Storage Types 25
Using Key-Value Pairs with iCloud 26
Using Key-Value Pairs in Grocery 27
Reacting to Changes in iCloud 31
Key-Value Storage Limitations 32
Moving On 33
3. Working with Documents 34
Interacting with iCloud 34
Extending the UIDocument Class 35
Modeling a Grocery Item as a UIDocument 39
Displaying a Grocery Item 41
Moving On 47
4. Managing Multiple Files and iCloud Notifications 48
Creating and Managing Multiple Files 48
Creating and Managing Multiple Grocery Items 49
Managing Updates While an Application Is Running 54
Editing Grocery Item Content 57
Moving On 62
5. Wrapping Items in a Single File 63
Working with File Packages 64
Packaging Grocery Items 64
Updating the User Interface 72
Moving On 80
6. Handling Nontextual Information in a Data Model 81
Working with Data in Packages 81
Associating Images with Names 82
Updating the User Interface 88
Moving On 95
7. Handling Conflicts 97
Working with Document States and Notifications 97
Preventing Conflicts Between Grocery Items 99
Resolving Conflicts Between Grocery Items 104
Moving On 110
8. Working with Core Data and iCloud 111
The Relational Model of the Grocery List 112
Initializing a Core Data Stack for iCloud 114
Handling Conflicts 122
Moving On 125
Conclusion 125
A1. Bibliography 126
开源日期
2025-10-27
更多信息……

🚀 快速下载

成为会员以支持书籍、论文等的长期保存。为了感谢您对我们的支持,您将获得高速下载权益。❤️

🐢 低速下载

由可信的合作方提供。 更多信息请参见常见问题解答。 (可能需要验证浏览器——无限次下载!)

所有选项下载的文件都相同,应该可以安全使用。即使这样,从互联网下载文件时始终要小心。例如,确保您的设备更新及时。
  • 对于大文件,我们建议使用下载管理器以防止中断。
    推荐的下载管理器:Motrix
  • 您将需要一个电子书或 PDF 阅读器来打开文件,具体取决于文件格式。
    推荐的电子书阅读器:Anna的档案在线查看器ReadEraCalibre
  • 使用在线工具进行格式转换。
    推荐的转换工具:CloudConvertPrintFriendly
  • 您可以将 PDF 和 EPUB 文件发送到您的 Kindle 或 Kobo 电子阅读器。
    推荐的工具:亚马逊的“发送到 Kindle”djazz 的“发送到 Kobo/Kindle”
  • 支持作者和图书馆
    ✍️ 如果您喜欢这个并且能够负担得起,请考虑购买原版,或直接支持作者。
    📚 如果您当地的图书馆有这本书,请考虑在那里免费借阅。