Declaration

Parameters

className

The name of the Object class to create.

object

The object used to populate the object. This can be any key/value coding
compliant object, or a JSON object such as those returned from the methods in
NSJSONSerialization, or an Array with one object for each persisted
property. An exception will be thrown if any required properties are not
present and no default is set.

Declaration

Parameters

Deletes the data for the class with the given name.
This deletes all objects of the given class, and if the Object subclass no longer exists in your program,
cleans up any remaining metadata for the class in the Realm file.