Closed chenzhengxu closed 5 years ago
在测试工程中只保留以下hook方法
- (void)viewDidLoad { [super viewDidLoad]; // hook for specific instance [self st_hookInstanceMethod:@selector(print3:) option:STOptionAfter usingIdentifier:@"hook_print3_after1" withBlock:^(id<StingerParams> params, NSString *s) { NSLog(@"---specific instance-self after print3: %@", s); }]; }
之后调用@selector(print3:)方法会引发crash
@selector(print3:)
在测试工程中只保留以下hook方法
之后调用
@selector(print3:)
方法会引发crash