Function

imp_removeBlock(_:)

Disassociates a block from an IMP that was created using imp_implementationWithBlock(_:), and releases the copy of the block that was created.

Declaration

func imp_removeBlock(_ anImp: IMP!) -> Bool

Parameters

anImp

An IMP that was created using the imp_implementationWithBlock(_:) function.

Return Value

true if the block was released successfully; otherwise, false (for example, the function returns false if the block was not used to create anImp previously).

See Also

Related Symbols

func imp_implementationWithBlock(Any!)

Creates a pointer to a function that calls the specified block when the method is called.