objc_registerProtocol(_:)
Registers a newly created protocol with the Objective-C runtime.
Declaration
func objc_registerProtocol(_ proto: Protocol)Parameters
- proto:
The protocol you want to register with the Objective-C runtime.
Discussion
When you create a new protocol using the objc_allocateProtocol(_:), you then register it with the Objective-C runtime by calling this function. After a protocol is successfully registered, it is immutable and ready to use.
See Also
Working with Protocols
objc_getProtocol(_:)objc_copyProtocolList(_:)objc_allocateProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProtocol(_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_getMethodDescription(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_getProperty(_:_:_:_:)protocol_copyProtocolList(_:_:)protocol_conformsToProtocol(_:_:)