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

为什么tableView右滑返回时会下移 #1

Closed
542604974 opened this issue Sep 5, 2018 · 6 comments
Closed

为什么tableView右滑返回时会下移 #1

542604974 opened this issue Sep 5, 2018 · 6 comments

Comments

@542604974
Copy link

为什么tableView右滑返回时会下移?不隐藏导航栏,而且返回按钮点击的话看到页面下移

@542604974
Copy link
Author

//- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{
// if (gestureRecognizer == self.navCtr.interactivePopGestureRecognizer ||
// gestureRecognizer == self.popInteraction.edgeLeftPanGR) {
// if (self.navCtr.viewControllers.count <= 1) {
// return NO;
// }
// BOOL conformsToProtocol = [self.navCtr.viewControllers.lastObject conformsToProtocol:@protocol(JPSuspensionEntranceProtocol)];
// if (gestureRecognizer == self.navCtr.interactivePopGestureRecognizer && conformsToProtocol) {
// return NO;
// }
// if (gestureRecognizer == self.popInteraction.edgeLeftPanGR) {
// if (!conformsToProtocol || (self.suspensionView.panGR.state == UIGestureRecognizerStateBegan || self.suspensionView.panGR.state == UIGestureRecognizerStateChanged) ) {
// return NO;
// }
// }
// }
// if (gestureRecognizer == self.suspensionView.panGR) {
// if (self.popInteraction.edgeLeftPanGR.state == UIGestureRecognizerStateBegan || self.popInteraction.edgeLeftPanGR.state == UIGestureRecognizerStateChanged) {
// return NO;
// }
// }
// return YES;
//}

@542604974
Copy link
Author

我发现是这个手势的问题

@Rogue24
Copy link
Owner

Rogue24 commented Sep 5, 2018 via email

@542604974
Copy link
Author

我在你的demo上viewController加上tableView也没问题,奇怪了

@542604974
Copy link
Author

设置了 self.edgesForExtendedLayout = UIRectEdgeNone;就会出现这个问题了

@Rogue24
Copy link
Owner

Rogue24 commented Sep 5, 2018 via email

@Rogue24 Rogue24 closed this as completed Sep 5, 2018
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

2 participants