Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个代码有bug啊,弄了一下午结果完全没嗅探到,摇一摇之后又退不出来 #1

Open
klbest1 opened this issue Nov 21, 2018 · 0 comments

Comments

@klbest1
Copy link

klbest1 commented Nov 21, 2018

    self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:nil];

#ifdef DEBUG
//调试模式下
[VKSniffer setupSnifferHandler:^(VKSnifferResult *result) {
NSLog(@"网络嗅探器%@",result);
}];
[VKSniffer startSniffer];

    [VKSniffer setupConfiguration:self.manager.sessionConfiguration];

    [[VKKeyCommands sharedInstance] registerKeyCommandWithInput:@"x" modifierFlags:UIKeyModifierCommand action:^(UIKeyCommand *command) {
        NSLog(@"11");
        [VKSniffer showSnifferView];
    }];
    
    [[VKShakeCommand sharedInstance]registerShakeCommandWithAction:^{
        [VKSniffer showSnifferView];
        NSLog(@"11");
    }];

#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant