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

二级页面无法右滑返回。 #8

Open
seekcx opened this issue Feb 24, 2016 · 3 comments
Open

二级页面无法右滑返回。 #8

seekcx opened this issue Feb 24, 2016 · 3 comments

Comments

@seekcx
Copy link

seekcx commented Feb 24, 2016

直接在demo上运行,进入第二个页面之后右滑就失效了,只能点返回才能返回上一个页面。

@rushairer
Copy link

self.navigationController.navigationBarHidden = YES 的时候 不会触发 -(BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item

所有 self.navigationController.navigationBarHidden = YES的页面 记得在pop之前要 self.navigationController.navigationBarHidden = NO;
就没事了

@seekcx
Copy link
Author

seekcx commented Mar 3, 2016

这个属性设置和侧滑的关系不大吧?我设置了只是标题栏被隐藏了,任然无法侧滑啊。而且原demo的代码都没有改动过的就出现这个问题。

@leslielhd1993
Copy link

手势里有一个问题,在RxWebViewController.m文件中的-(void)swipePanGestureHandler:(UIPanGestureRecognizer*)panGesture中在开始动画的在开始动画中设置有问题
if (panGesture.state == UIGestureRecognizerStateBegan) {
if (location.x <= 50 && translation.x > 0) { //开始动画
[self startPopSnapshotView];
}
}
这里的translation.x需要设置为>=而不是>

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