DLPanableWebView icon indicating copy to clipboard operation
DLPanableWebView copied to clipboard

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

Open andybin-cn opened this issue 9 years ago • 0 comments

如果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]; } }

andybin-cn avatar Mar 08 '16 03:03 andybin-cn