class func instanceMethod (for: Selector!) -> IMP!
Locates and returns the address of the implementation of the instance method identified by a given selector.
指定されたセレクタによって識別されるインスタンスメソッドの実装の所在(アドレス)を突き止めて返します。
Availability
Technology
func method(for aSelector: Selector
!) -> IMP!
aSelector
A Selector that identifies the method for which to return the implementation address. The selector must be a valid and non-NULL
. If in doubt, use the responds(to:)
method to check before passing the selector to method(for:)
.
The address of the receiver’s implementation of the a
.
If the receiver is an instance, a
should refer to an instance method; if the receiver is a class, it should refer to a class method.
class func instanceMethod (for: Selector!) -> IMP!