NSMethod object that contains a description of the method identified by a given selector.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
A Selector that identifies the method for which to return the implementation address. When the receiver is an instance,
ashould identify an instance method; when the receiver is a class, it should identify a class method.
NSMethod object that contains a description of the method identified by
nil if the method can’t be found.
This method is used in the implementation of protocols. This method is also used in situations where an
NSInvocation object must be created, such as during message forwarding. If your object maintains a delegate or is capable of handling messages that it does not directly implement, you should override this method to return an appropriate method signature.