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

# method_invoke

Calls the implementation of a specified method.

```
extern void method_invoke();
```

## Parameters:

- `receiver`: A pointer to the instance of the class that you want to invoke the method on. This value must not be `nil`.
- `m`: The method whose implementation you want to call.
- `...`: A variable argument list containing the arguments to the method.

## Return Value

The return value of the method.

## Discussion

Using this function to call the implementation of a method is faster than calling [`method_getImplementation(_:)`](/documentation/ObjectiveC/method_getImplementation(_:)) and [`method_getName(_:)`](/documentation/ObjectiveC/method_getName(_:)).

---

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)