Function

class_getMethodImplementation_stret(_:_:)

Returns the function pointer that would be called if a particular message were sent to an instance of a class.

Declaration

func class_getMethodImplementation_stret(_ cls: AnyClass!, _ name: Selector!) -> IMP!

Parameters

cls

The class you want to inspect.

name

A selector.

Return Value

The function pointer that would be called if [object name] were called with an instance of the class, or NULL if cls is Nil.