bonus-material-app/nativeplugins/Mpaas-Scan/ios/mPaas.framework/Headers/APFastMethodSwizzling.h

32 lines
630 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// APFastMethodSwizzling.h
// APMobileFoundation
//
// Created by myy on 2017/4/21.
// Copyright © 2017年 Alipay. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/**
* instance使用method_exchangeImplementations的替代方法更快
* 参考https://www.atatech.org/articles/56564
*
* 注意只能替换instance方法不能替换class方法
*/
BOOL instanceMethod_fastExchangeImplementations(Class origCls, SEL origSEL, Class newCls, SEL newSEL);
#ifdef __cplusplus
}
#endif // __cplusplus