Creates, configures, and returns an instance of the class for the entity with a given name.
- iOS 3.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Core Data
The name of an entity.
The managed object context to use.
A new, autoreleased, fully configured instance of the class for the entity named
entity. The instance has its entity description set and is inserted it into
This method makes it easy for you to create instances of a given entity without worrying about the details of managed object creation. The method is conceptually similar to the following code example.