Under the hood, Core Data is made up of many parts working together. In this chapter, you’ll learn about how these parts fit together, and move away from the starter Xcode template to build your own customizable system…
iOS & Swift
Chapter in Core Data by Tutorials
Your First Core Data App
Nov 20 2020 · Chapter
…click File\New Project and write a Core Data app from scratch! This chapter covers the basics of setting up your data model and then adding and fetching records…
iOS & Swift
Chapter in Core Data by Tutorials
Versioning & Migration
Nov 20 2020 · Chapter
As you update and enhance your app, its data model will almost certainly need to change. In this chapter, you’ll learn how to create…
iOS & Swift
Chapter in Core Data by Tutorials
NSManagedObject Subclasses
Nov 20 2020 · Chapter
NSManagedObject is the base data storage class of your Core Data object graphs. This chapter will teach you how you customize your own managed object subclasses to store and validate data…
iOS & Swift
Chapter in Core Data by Tutorials
Intermediate Fetching
Nov 20 2020 · Chapter
Your apps will fetch data all the time, and Core Data offers many options for getting the data to you efficiently. This chapter covers more advanced fetch requests, predicates, sorting and asynchronous fetching…
iOS & Swift
Chapter in Core Data by Tutorials
NSPersistentCloudKit Container
Nov 20 2020 · Chapter
This chapter shows you how to use the new NSPersistentCloudKitContainer to make your Core Data app sync across all the user's devices…
iOS & Swift
Chapter in Core Data by Tutorials
Measuring & Boosting Performance
Nov 20 2020 · Chapter
…poor performance will, at best, receive bad reviews and, at worst, become unresponsive and crash. This is no less true of apps that use Core Data. Luckily, most implementations of Core Data are fast and light already, due to Core Data’s built-in optimizations, such as faulting. However…
iOS & Swift
Core Data by Tutorials
Nov 20 2020 · Book
Learn Core Data with Swift! This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to use Core Data to save data in their apps. Start with with the basics like setting up your own Core Data Stack…
iOS & Swift
Chapter in Core Data by Tutorials
Introduction
Nov 20 2020 · Chapter
What is Core Data? You’ll hear a variety of answers to this question: It’s a database! It’s SQLite! It’s not a database! And so forth. Here’s the technical answer: Core Data is an object graph management and persistence framework in the macOS and iOS SDKs…
iOS & Swift
Chapter in Core Data by Tutorials
NSFetchedResults Controller
Nov 20 2020 · Chapter
Table views are at the core of many iOS apps, and Apple wants to make Core Data play nicely with them! In this chapter, you’ll learn how NSFetchedResultsController can save you time and code when your table views are backed by data from Core Data…
iOS & Swift
Chapter in Core Data by Tutorials
Unit Testing
Nov 20 2020 · Chapter
Testing is an important part of the development process, and you shouldn’t leave Core Data out of those tests! In this chapter, you’ll learn how to set up a separate test environment for Core Data and see examples of how to test your models…
iOS & Swift
Chapter in Core Data by Tutorials
Multiple Managed Object Contexts
Nov 20 2020 · Chapter
…this chapter, you’ll expand the usual Core Data stack to include multiple managed object contexts. You’ll learn how this can improve perceived performance and help make your app architecture less monolithic and more compartmentalized…
iOS & Swift
Chapter in Core Data by Tutorials
Conclusion
Nov 20 2020 · Chapter
…hope this book has helped you get up to speed with Core Data and Swift! You’re well on your way to developing your own high-performance apps with well-designed models and unit tests. As you’ve seen, you can use Core Data to model all kinds of data…
iOS & Swift
Chapter in Core Data by Tutorials
About the Cover
Nov 20 2020 · Chapter
Core Data by Tutorials Cover The North Pacific giant octopus is normally red in color but can quickly assume the color of its surroundings to blend in and hide from predators. Since it has no internal or external skeleton, it can squeeze into extremely small crevices. Core Data…
iOS & Swift
Chapter in Core Data by Tutorials
Acknowledgements
Nov 20 2020 · Chapter
Core Data by Tutorials team would also like to thank Saul Morrow for his work as one of the original authors of this book…