12207480 / TYPagerController

page scroll view and controller,simple,high custom,and have many tabBar styles,,support Objective-C and swift
MIT License
1.37k stars 231 forks source link

使用后右滑返回失效? #73

Open xiaohange opened 7 years ago

xiaohange commented 7 years ago

demo没问题, 集成进新项目就会失效

12207480 commented 7 years ago

手势冲突?

xiaohange commented 7 years ago

@12207480 我想在这个TYPagerController 管理的子控制器加右滑返回, 该怎么做呢

GaoYingQiu commented 6 years ago

自定义scrollview 继承UIScrollview . 判断拖动时候的偏移值self.contentOffset.x 。如果小于0 则让它返回 .

GaoYingQiu commented 6 years ago

@xiaohange

12207480 commented 6 years ago

解决了吗

xiaohange commented 6 years ago

@12207480 @GaoYingQiu 我看demo就可以, 没有看到另外还要自定义scrollowView呀

Rcrosp commented 6 years ago

我也有需求 用到右侧返回,现在右侧返回 失效

xiaohange commented 6 years ago

@GaoYingQiu 这个自定义scrollview 继承UIScrollview . ,scrollowView是放在哪里的呢?

xiaohange commented 6 years ago

@12207480 这个自定义scrollview 继承UIScrollview . ,scrollowView是放在哪里的呢?

chenhde commented 5 years ago

设置一下 [pagerController.scrollView.panGestureRecognizer requireGestureRecognizerToFail:self.navigationController.interactivePopGestureRecognizer]; 就可以右滑返回了