Instance Method

willRemove(from:)

Invoked before the persistent store is removed from the persistent store coordinator.

Declaration

func willRemove(from coordinator: NSPersistentStoreCoordinator?)

Parameters

coordinator

The persistent store coordinator from which the receiver was removed.

Discussion

The default implementation does nothing. You can override this method in a subclass in order to perform any clean-up before the store is removed from the coordinator (and deallocated).

See Also

Creating and Destroying a Persistent Store

func didAdd(to: NSPersistentStoreCoordinator)

Invoked after the persistent store has been added to the persistent store coordinator.