JLChen
2021-05-13 7f62f2d3bf626ac55d2d2de05ca1d71eaaabef39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
//  Copyright © 2018年 Zhejiang Dahua Technology Co.,Ltd. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface NSObject (MethodSwizzle)
 
+ (void)swizzleInstanceMethod:(SEL)origSelector withMethod:(SEL)newSelector;
 
+ (void)swizzleInstanceMethod:(SEL)origSelector withMethod:(SEL)newSelector withClass:(Class)cls;
 
+ (void)swizzleClassMethod:(SEL)origSelector withMethod:(SEL)newSelector;
 
+ (void)swizzleClassMethod:(SEL)origSelector withMethod:(SEL)newSelector withClass:(Class)cls;
 
@end
 
NS_ASSUME_NONNULL_END