Function 関数

class_addProperty

Adds a property to a class. あるプロパティをあるクラスに加えます。

Declaration 宣言

BOOL class_addProperty(Class cls, const char *name, const objc_property_attribute_t *attributes, unsigned int attributeCount);

Parameters パラメータ

cls

The class to modify.

name

The name of the property.

attributes

An array of property attributes.

attributeCount

The number of attributes in attributes.

Return Value 戻り値

YES if the property was added successfully; otherwise NO (for example, this function returns NO if the class already has that property).

See Also 参照

Working with Classes クラスを扱う