Book description
Get Started Fast with Core Data App Development Using iOS 9, Swift, and Xcode 7
Core Data is a remarkably mature, stable, and fast platform for data access, and Swift is a world-class language for applying it. Now, there’s a complete guide to using Core Data and Swift together in production apps. Tim Roadley shows you how to gain the benefits of a relational database without writing SQL queries, so you can get more done faster, with less coding.
This book fully reflects Apple’s latest iOS 9 platform innovations and teaches Core Data entirely with Swift examples. It guides you step-by-step through creating a modern data-driven iOS app that fully integrates iCloud via CloudKit for public data sharing.
Roadley introduces up-to-date patterns and best practices designed to overcome the frustrations of Core Data development. Each chapter builds on the last, introducing new topics in the order you’ll implement them and extending your skills simply and intuitively.
Each chapter offers downloadable project code, along with exercises to help you explore even further, either as a self-learner or a student in an iOS development course. Roadley even shows how to build helper classes that simplify reuse of his example code.
If you’re an experienced iOS developer, here are all the Swift skills and resources you need to integrate data into any app—quickly, easily, and painlessly.
Coverage includes
Understanding what Core Data is and what it can (and can’t) do
Configuring basic managed object models, and choosing data types
Expanding data models without introducing errors
Using relationships and entity inheritance to unlock more power
Delivering memory-efficient, high performance table views
Enabling users to easily modify managed object attributes
Generating persistent stores of preloaded default data
Using Deep Copy to copy objects and relationships between persistent stores
Optimizing performance by eliminating bottlenecks and offloading intensive tasks to the background
Implementing efficient search
Integrating diverse iCloud accounts and preferences
Mastering advanced iCloud integration, including entity-level seeding and unique object de-dupe
Leveraging public CloudKit databases to sync data across users with different iCloud accounts
About the Website
All code samples are available for download at timroadley.com.
informit.com/learningseries
timroadley.com
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Dedication Page
- Contents at a Glance
- Table of Contents
- Acknowledgments
- About the Author
- Preface
- 1. Your First Core Data Application
-
2. Managed Object Model Basics
- What Is a Managed Object Model?
- Entities
- Attributes
- Integer 16/32/64
- Float and Double
- Attribute Settings
- Subclassing NSManagedObject
- Scalar Properties for Primitive Data Types
- Introducing the Demo Function
- Creating a Managed Object
- Backend SQL Visibility
- Fetching Managed Objects
- Deleting Managed Objects
- Summary
- Exercises
- 3. Managed Object Model Migration
- 4. Managed Object Model Expansion
- 5. Table Views
- 6. Views
- 7. Picker Views
-
8. Preloading Data
- Including Default Data
- Indicating Whether an Import Is Required
- Importing from XML
- Creating an Import Context
- Preventing Duplicate Default Data
- Triggering a Default Data Import
- Finding or Creating Managed Objects
- Mapping XML Data to Entity Attributes
- Importing from a Persistent Store
- Summary
- Exercises
- 9. Deep Copy
- 10. Performance
- 11. Background Processing
- 12. Search
- 13. iCloud
- 14. Taming iCloud
- 15. CloudKit Sync: Uploading Objects
- 16. CloudKit Sync: Downloading Changes and Handling Deletions
- A. Preparing the Groceries Application
- B. Finalizing the Groceries Application
- Code Snippets
Product information
- Title: Learning Core Data for iOS with Swift: A Hands-On Guide to Building Core Data Applications, Second Edition
- Author(s):
- Release date: December 2015
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134120096
You might also like
book
Core Data in Swift
Core Data is intricate, powerful, and necessary. Discover the powerful capabilities integrated into Core Data, and …
book
Pro iOS Persistence : Using Core Data
Pro iOS Persistence explains how to build apps in Objective-C and Swift that persist and use …
book
iOS 12 Programming Fundamentals with Swift
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 10 …
book
iOS 10 Swift Programming Cookbook
Ready to build truly stunning apps for iPhone, iPad, and Apple Watch? This cookbook—written exclusively in …