Function 関数

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 クラスを扱う