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_descriptionParameters
- proto:
A protocol.
- aSel:
A selector
- isRequiredMethod:
A Boolean value that indicates whether
aSelis a required method. - isInstanceMethod:
A Boolean value that indicates whether
aSelis 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
objc_getProtocol(_:)objc_copyProtocolList(_:)objc_allocateProtocol(_:)objc_registerProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProtocol(_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_getProperty(_:_:_:_:)protocol_copyProtocolList(_:_:)protocol_conformsToProtocol(_:_:)