Created
August 9, 2020 13:28
-
-
Save wyanassert/07a6e78af730320452f0bad0f34549a2 to your computer and use it in GitHub Desktop.
ScreenEdgePop 手动添加思路
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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