Skip to content

Instantly share code, notes, and snippets.

@wyanassert
Created August 9, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyanassert/07a6e78af730320452f0bad0f34549a2 to your computer and use it in GitHub Desktop.
Save wyanassert/07a6e78af730320452f0bad0f34549a2 to your computer and use it in GitHub Desktop.
ScreenEdgePop 手动添加思路
SEL action = NSSelectorFromString(@"handleNavigationTransition:");
UIScreenEdgePanGestureRecognizer *edgePanGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self.navigationController.interactivePopGestureRecognizer.delegate action:action];
edgePanGesture.edges = UIRectEdgeLeft;
edgePanGesture.delegate = self;
[self.view addGestureRecognizer:edgePanGesture];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment