Function

object_getClassName(_:)

Returns the class name of a given object.

Declaration

func object_getClassName(_ obj: Any?) -> UnsafePointer<Int8>

Parameters

obj

An Objective-C object.

Return Value

The name of the class of which obj is an instance.

See Also

Working with Instances

func object_getIvar(Any?, Ivar)

Reads the value of an instance variable in an object.

func object_setIvar(Any?, Ivar, Any?)

Sets the value of an instance variable in an object.

func object_getClass(Any?)

Returns the class of an object.

func object_setClass(Any?, AnyClass)

Sets the class of an object.