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

侧滑返回 #276

Open
yeniugo opened this issue Dec 30, 2019 · 2 comments
Open

侧滑返回 #276

yeniugo opened this issue Dec 30, 2019 · 2 comments

Comments

@yeniugo
Copy link

yeniugo commented Dec 30, 2019

[self.rt_navigationController.interactivePopGestureRecognizer addTarget:self action:@selector(onBack:)];

我用这个设置返回,只能获取UIGestureRecognizerStateBeganUIGestureRecognizerStateEnded,而原生的那个是要么侧滑比较快,要么是过半屏的侧滑返回,有几种方式,一个是hook系统的方法,替换,这个得分析target的方法,并hook,这个不同系统可能会不一样,或者随时被修改。另一种是自己禁用返回,而自己添加一个返回事件。这个比较方便,但对于那个页面到一半得那里,我不知道怎么写。需要研究。

@rickytan
Copy link
Owner

#17 能不能解决你的问题?

@chenzefu
Copy link

请问区别侧滑到宽度的一半啊?

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

3 participants