Function 関数

imp_implementationWithBlock(_:)

Creates a pointer to a function that calls the specified block when the method is called. ある関数へのポインターを作成します、それはメソッドが呼び出される時に指定されたブロックを呼び出すものです。

Declaration 宣言

func imp_implementationWithBlock(_ block: Any) -> IMP

Parameters パラメータ

block

The block that implements this method. The signature of block should be method_return_type ^(id self, self, method_args …). The selector of the method is not available to block. block is copied with Block_copy().

Return Value 戻り値

The IMP that calls block. You must dispose of the returned IMP using the function.

See Also 参照

Using Objective-C Language Features Objective-C言語機能を使う