<!--
{
  "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/method_getArgumentType(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@F@method_getArgumentType"
  },
  "title" : "method_getArgumentType(_:_:_:_:)"
}
-->

# method_getArgumentType(_:_:_:_:)

Returns by reference a string describing a single parameter type of a method.

```
func method_getArgumentType(_ m: Method, _ index: UInt32, _ dst: UnsafeMutablePointer<CChar>?, _ dst_len: Int)
```

## Discussion

The parameter type string is copied to `dst`. `dst` is filled as if `strncpy(dst, parameter_type, dst_len)` were called. If the method contains no parameter with that index, `dst` is filled as if `strncpy(dst, "", dst_len)` were called.

---

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)