Contents

init(contentsOf:)

Initializes the managed object model using the model file at the specified URL.

Declaration

convenience init?(contentsOf url: URL)

Parameters

  • url:

    An URL object specifying the location of a model file.

Return Value

A managed object model initialized using the file at url.

See Also

Related Documentation

  • Core Data Programming Guide
  • Core Data Model Versioning and Data Migration Programming Guide

Creating a managed object model