Function 関数

objc_lookUpClass(_:)

Returns the class definition of a specified class.

Declaration 宣言

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

Parameters パラメータ

name

The name of the class to look up.

Return Value 戻り値

The Class object for the named class, or nil if the class is not registered with the Objective-C runtime.

Discussion 解説

objc_getClass(_:) is different from this function in that if the class is not registered, objc_getClass(_:) calls the class handler callback and then checks a second time to see whether the class is registered. This function does not call the class handler callback.

See Also 参照

Obtaining Class Definitions