Contents

class_getInstanceVariable(_:_:)

Returns the Ivar for a specified instance variable of a given class.

Declaration

func class_getInstanceVariable(_ cls: AnyClass?, _ name: UnsafePointer<CChar>) -> Ivar?

Parameters

  • cls:

    The class whose instance variable you wish to obtain.

  • name:

    The name of the instance variable definition to obtain.

Return Value

A pointer to an Ivar data structure containing information about the instance variable specified by name.

See Also

Working with Classes