Type Method 型メソッド

instancesRespond(to:)

Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector. レシーバのインスタンスが指定したセレクタに応答する能力があるかどうかを指し示すブール値を返します。

Declaration 宣言

class func instancesRespond(to aSelector: Selector!) -> Bool

Parameters パラメータ

aSelector

Return Value 戻り値

true if instances of the receiver are capable of responding to aSelector messages, otherwise false.

Discussion 解説

If aSelector messages are forwarded to other objects, instances of the class are able to receive those messages without error even though this method returns false.

To ask the class whether it, rather than its instances, can respond to a particular message, send to the class instead the NSObject protocol instance method responds(to:).

See Also 参照

Related Documentation 関連文書