Contents

protocol_getMethodDescription(_:_:_:_:)

Returns a method description structure for a specified method of a given protocol.

Declaration

func protocol_getMethodDescription(_ proto: Protocol, _ aSel: Selector, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool) -> objc_method_description

Parameters

  • proto:

    A protocol.

  • aSel:

    A selector

  • isRequiredMethod:

    A Boolean value that indicates whether aSel is a required method.

  • isInstanceMethod:

    A Boolean value that indicates whether aSel is an instance method.

Return Value

An objc_method_description structure that describes the method specified by aSel, isRequiredMethod, and isInstanceMethod for the protocol p.

Discussion

If the protocol does not contain the specified method, returns an objc_method_description structure with the value {NULL, NULL}.

See Also

Working with Protocols