Instructs the persistent container to load the persistent stores.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
- Core Data
Once the loading of the persistent stores has completed, this block will be executed on the calling thread.
Once the persistent container has been initialized, you need to execute
load to instruct the container to load the persistent stores and complete the creation of the Core Data stack.
Once the completion handler has fired, the stack is fully initialized and is ready for use. The completion handler will be called once for each persistent store that is created.
If there is an error in the loading of the persistent stores, the
NSError value will be populated.