Function 関数

class_addProtocol

Adds a protocol to a class. あるプロトコルをあるクラスに加えます。

Declaration 宣言

BOOL class_addProtocol(Class cls, Protocol *protocol);

Parameters パラメータ

cls

The class to modify.

outCount

The protocol to add to cls.

Return Value 戻り値

YES if the protocol was added successfully, otherwise NO (for example, the class already conforms to that protocol).

See Also 参照

Working with Classes クラスを扱う