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

DLPanableWebViewHandler代理中直接调用[navPanTarget_ performSelector:navPanAction_ withObject:pan];会使得程序假死。 #4

Open
andybin-cn opened this issue Mar 8, 2016 · 0 comments

Comments

@andybin-cn
Copy link

如果WebView是在navigationController的RootViewController中,在DLPanableWebViewHandler的代理中直接调用[navPanTarget_ performSelector:navPanAction_ withObject:pan];会使得程序假死。
我的处理方式:

  • (void)DLPanableWebView:(DLPanableWebView *)webView panPopGesture:(UIPanGestureRecognizer *)pan{
    if ( self.navigationController.viewControllers.count < 2 && self == [self.navigationController.viewControllers objectAtIndex:0] )
    {
    return;
    }
    if (navPanTarget_ && [navPanTarget_ respondsToSelector:navPanAction_]) {
    [navPanTarget_ performSelector:navPanAction_ withObject:pan];
    }
    }
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