<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                method_exchangeImplementations運行時動態改變兩個方法的實現 ~~~ /** ?* Exchanges the implementations of two methods. ?* ?* @param m1 Method to exchange with second method. ?* @param m2 Method to exchange with first method. ?* ?* @note This is an atomic version of the following: ?*? \code ?*? IMP imp1 = method_getImplementation(m1); ?*? IMP imp2 = method_getImplementation(m2); ?*? method_setImplementation(m1, imp2); ?*? method_setImplementation(m2, imp1); ?*? \endcode ?*/ OBJC_EXPORT void method_exchangeImplementations(Method m1, Method m2) ???? __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); ~~~ 代碼: ~~~ - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. Method m1 = class_getInstanceMethod([self class], @selector(testExchange1)); Method m2 = class_getInstanceMethod([self class], @selector(testExchange2)); [self testExchange1]; [self testExchange2]; method_exchangeImplementations(m1, m2); [self testExchange1]; [self testExchange2]; } - (void) testExchange1 { NSLog(@"%s", __func__); } - (void) testExchange2 { NSLog(@"%s", __func__); } ~~~ 輸出: ~~~ 2015-11-02 13:38:40.264 02-runtime[2485:68367] -[ViewController testExchange1] 2015-11-02 13:38:40.266 02-runtime[2485:68367] -[ViewController testExchange2] 2015-11-02 13:38:40.281 02-runtime[2485:68367] -[ViewController testExchange2] 2015-11-02 13:38:40.281 02-runtime[2485:68367] -[ViewController testExchange1] ~~~ 通過代碼相信很容易理解吧
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看