Adds a method to a protocol.
- iOS 4.3+
- macOS 10.7+
- tvOS 9.0+
- watchOS 1.0+
The protocol you want to add a method to.
The name of the method you want to add.
A C string representing the signature of the method you want to add.
To add a method to a protocol using this function, the protocol must be under construction. That is, you must add any methods to
proto before you register it with the Objective-C runtime (via the