Comments (14)
现有的就可以,只是要边缘
from rtrootnavigationcontroller.
你是说0.5.20这个版本吗,我的是这个版本,不行。我在边缘各个位置都试过了,都直接被scrollView的代理接受掉了
from rtrootnavigationcontroller.
demo 中是有 scroll 的例子的,你有改 scrollview 的什么设置吗?
from rtrootnavigationcontroller.
我这个自定义的UIScrollView是一个第三方的3D图片查看框架,他继承UIScrollView。我自己这里没做任何设置。有哪些设置可能会影响到这个手势冲突?
from rtrootnavigationcontroller.
那个的实现是 UIScrollView
中又带 UIScrollView
吧?源码地址贴一下,应该是他实现了 gesture 的 delegate 了
from rtrootnavigationcontroller.
https://github.com/jonathantribouharet/JT3DScrollView
from rtrootnavigationcontroller.
如果像你说的又套了一个UIScrollView,那该怎么解?
from rtrootnavigationcontroller.
貌似没有问题啊,看下 issue24分支
from rtrootnavigationcontroller.
这个问题你在issue24分支已解决,但还没合并到master主分支吗? 我下的是主分支
from rtrootnavigationcontroller.
我刚刚把master和issue24都下过来试过了,在图片模式右滑都不行。这个就放一放了,还有一个问题是全屏右滑后UITableView的左滑删除功能的左滑手势被吃掉了,这要怎么解呢?
from rtrootnavigationcontroller.
我本来已经妥协用侧滑,产品经理说必须全屏右滑,郁闷死
from rtrootnavigationcontroller.
issue24 和 master 代码是一样的,只是加了个 demo
from rtrootnavigationcontroller.
可以 UIGesture
的 delegate
中返回 NO
,shouldBegin
那个方法,判断用户是向左还是向右
from rtrootnavigationcontroller.
恩,可以的兄弟,谢了。今天有空把方法贴出来:
-
(BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer {
//只有非根控制器才有滑动返回功能,根控制器没有,判断导航控制器是否只有一个子控制器
if (self.childViewControllers.count == 1) {
//如果在根控制器,就不需要触发滑动手势
return NO;
}//处理左滑事件
CGPoint translation = [gestureRecognizer translationInView:gestureRecognizer.view];
if (translation.x <= 0) {
return NO;
}return YES;
}
from rtrootnavigationcontroller.
Related Issues (20)
- 大佬你好,我项目中的导航栏继承了你的RTRootNavigationController,然后项目中是UITabBarController作为根控制器,项目中也使用了FDFullscreenPopGesture来做全屏侧滑,我发现当我禁用了全屏侧滑的时候,系统的左边缘侧滑并没有失效,具体代码如下 HOT 4
- 什么时候支持 https://cdn.cocoapods.org/
- 屏幕下面的tabbar未隐藏。 HOT 1
- 关于iOS14的适配工作 HOT 2
- 横竖屏切换出现跟系统UINavigationController不一致的效果 HOT 3
- iOS14上面popToRoot有问题 HOT 5
- RTRootNavigationController和网易云信SDK一起使用会导致返回按钮消失,也无法设置。
- 不维护了???
- TabbarController跳转 HOT 1
- 关于自定义转场动画的疑问
- iOS 15上导航栏会变成白色 HOT 5
- 关于iOS 15适配 HOT 3
- iOS15导航问题 HOT 5
- iOS15 如果配置了全局的导航器背景,后面针对某一个导航器修改背景没有效果 HOT 6
- 与ZFPlayer一起使用的问题 HOT 2
- 设置背景色不起作用,闪一下变回白色 HOT 1
- [self.navigationController pushViewController:self animated:YES] HOT 1
- iOS 16 使用UIWindowSceneGeometryPreferencesIOS切换横竖屏无效 HOT 5
- Memory leak: RTContainerController, RTContainerNavigationController HOT 1
- Will this be more cumbersome?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtrootnavigationcontroller.