iCloud for Developers: Automatically Sync Your iOS Data, Everywhere, All the Time Год: 2013 Автор: Cesare Rocchi Жанр: Программирование Издательство: Pragmatic Bookshelf ISBN: 978-1-937785-60-4 Язык: Английский Формат: PDF/EPUB Качество: Изначально компьютерное (eBook) Интерактивное оглавление: Да Количество страниц: 145 Описание: 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.
Примеры страниц
Оглавление
Contents Acknowledgments . . . . . . . . . . . vii Preface . . . . . . . . . . . . . . ix 1. Preparing Your Application for iCloud . . . . . . . 1 1.1 What Is iCloud? 2 1.2 What’s Behind iCloud 3 1.3 Introducing the Grocery Application 5 1.4 Enabling Your Application for iCloud 6 1.5 Checking for iCloud Availability 12 1.6 Moving On 13 2. Working with Key-Value Data . . . . . . . . 15 2.1 iCloud Storage Types 15 2.2 Using Key-Value Pairs with iCloud 16 2.3 Using Key-Value Pairs in Grocery 17 2.4 Reacting to Changes in iCloud 21 2.5 Key-Value Storage Limitations 22 2.6 Moving On 23 3. Working with Documents . . . . . . . . . 25 3.1 Interacting with iCloud 25 3.2 Extending the UIDocument Class 26 3.3 Modeling a Grocery Item as a UIDocument 30 3.4 Displaying a Grocery Item 32 3.5 Moving On 38 4. Managing Multiple Files and iCloud Notifications . . . . 39 4.1 Creating and Managing Multiple Files 39 4.2 Creating and Managing Multiple Grocery Items 40 4.3 Managing Updates While an Application Is Running 45 4.4 Editing Grocery Item Content 48 4.5 Moving On 53 5. Wrapping Items in a Single File . . . . . . . . 55 5.1 Working with File Packages 56 5.2 Packaging Grocery Items 56 5.3 Updating the User Interface 64 5.4 Moving On 72 6. Handling Nontextual Information in a Data Model . . . 73 6.1 Working with Data in Packages 73 6.2 Associating Images with Names 74 6.3 Updating the User Interface 80 6.4 Moving On 87 7. Handling Conflicts . . . . . . . . . . . 89 7.1 Working with Document States and Notifications 89 7.2 Preventing Conflicts Between Grocery Items 91 7.3 Resolving Conflicts Between Grocery Items 96 7.4 Moving On 102 8. Working with Core Data and iCloud . . . . . . . 103 8.1 The Relational Model of the Grocery List 104 8.2 Initializing a Core Data Stack for iCloud 106 8.3 Handling Conflicts 114 8.4 Moving On 117 8.5 Conclusion 117 A1. Bibliography . . . . . . . . . . . . 119
Cesare Rocchi - iCloud for Developers: Automatically Sync Your iOS Data, Everywhere, All the Time [2013, PDF/EPUB, ENG] download torrent for free and without registration
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum