Function class _add Protocol
Adds a protocol to a class.
iOS 2.0+ macOS 10.5+ UIKit for Mac 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration BOOL class_addProtocol( Class cls, Protocol *protocol);
The protocol to add to
cls Return Value
if the protocol was added successfully, otherwise
(for example, the class already conforms to that protocol).
NO See Also Working with Classes class _is Meta Class
Returns a Boolean value that indicates whether a class object is a metaclass.
class _add Method
Adds a new method to a class with a given name and implementation.
class _get Class Method
Returns a pointer to the data structure describing a given class method for a given class.
class _responds To Selector
Returns a Boolean value that indicates whether instances of a class respond to a particular selector.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software