Function 関数

objc_getRequiredClass(_:)

Returns the class definition of a specified class.

Declaration 宣言

func objc_getRequiredClass(_ name: UnsafePointer<CChar>) -> AnyClass

Parameters パラメータ

name

The name of the class to look up.

Return Value 戻り値

The Class object for the named class.

Discussion 解説

This function is the same as objc_getClass(_:), but kills the process if the class is not found.

This function is used by ZeroLink, where failing to find a class would be a compile-time link error without ZeroLink.

See Also 参照

Obtaining Class Definitions