imp_implementationWithBlock(_:)
Creates a pointer to a function that calls the specified block when the method is called.
Declaration
func imp_implementationWithBlock(_ block: Any) -> IMPParameters
- block:
The block that implements this method. The signature of
blockshould bemethod_return_type ^(id self, method_args …). The selector of the method is not available toblock.blockis copied withBlock_copy().
Return Value
The IMP that calls block. You must dispose of the returned IMP using the function.