Function 関数

method_exchangeImplementations(_:_:)

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

Declaration 宣言

func method_exchangeImplementations(_ m1: Method, 
                                  _ m2: Method)

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 メソッドを扱う