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) -> Any?

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?) -> AnyClass?

Returns the class of an object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software