<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/protocol_getMethodDescription(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@F@protocol_getMethodDescription"
  },
  "title" : "protocol_getMethodDescription(_:_:_:_:)"
}
-->

# protocol_getMethodDescription(_:_:_:_:)

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

```
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}`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)