Function 関数

protocol_copyPropertyList

Returns an array of the properties declared by a protocol. あるプロトコルによって宣言されるプロパティそれらからなるある配列を返します。

Declaration 宣言

objc_property_t  _Nonnull * protocol_copyPropertyList(Protocol *proto, unsigned int *outCount);

Parameters パラメータ

proto

A protocol. あるプロトコル。

outCount

Upon return, contains the number of elements in the returned array.

Return Value 戻り値

A C array of pointers of type objc_property_t describing the properties declared by proto. Any properties declared by other protocols adopted by this protocol are not included. The array contains *outCount pointers followed by a NULL terminator. You must free the array with free().

If the protocol declares no properties, NULL is returned and *outCount is 0.

See Also 参照

Working with Protocols プロトコルを扱う