push跳转界面以后在pop返回的时候想要用手势返回。
使用以下方式
@interface SetViewController ()<UIGestureRecognizerDelegate>
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationController.interactivePopGestureRecognizer.delegate = self; //启用侧滑手势
}
push跳转界面以后在pop返回的时候想要用手势返回。
使用以下方式
@interface SetViewController ()<UIGestureRecognizerDelegate>
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationController.interactivePopGestureRecognizer.delegate = self; //启用侧滑手势
}
本文标题:iOS push跳转添加手势返回
本文链接:https://www.haomeiwen.com/subject/tibqxctx.html
网友评论