Function 関数

method_exchangeImplementations

Exchanges the implementations of two methods. 2つのメソッドの実装を交換します。

Declaration 宣言

void method_exchangeImplementations(Method m1, Method m2);

Discussion 解説

This is an atomic version of the following:


IMP imp1 = method_getImplementation(m1);
IMP imp2 = method_getImplementation(m2);
method_setImplementation(m1, imp2);
method_setImplementation(m2, imp1);

See Also 参照

Working with Methods メソッドを扱う