Type Method

resolveClassMethod(_:)

Dynamically provides an implementation for a given selector for a class method.

Declaration

class func resolveClassMethod(_ sel: Selector!) -> Bool

Parameters

name

The name of a selector to resolve.

Return Value

true if the method was found and added to the receiver, otherwise false.

Discussion

This method allows you to dynamically provide an implementation for a given selector. See resolveInstanceMethod(_:) for further discussion.

See Also

Dynamically Resolving Methods

class func resolveInstanceMethod(Selector!) -> Bool

Dynamically provides an implementation for a given selector for an instance method.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software