Giter VIP home page Giter VIP logo

Comments (14)

rickytan avatar rickytan commented on May 14, 2024

现有的就可以,只是要边缘

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

你是说0.5.20这个版本吗,我的是这个版本,不行。我在边缘各个位置都试过了,都直接被scrollView的代理接受掉了

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 14, 2024

demo 中是有 scroll 的例子的,你有改 scrollview 的什么设置吗?

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

我这个自定义的UIScrollView是一个第三方的3D图片查看框架,他继承UIScrollView。我自己这里没做任何设置。有哪些设置可能会影响到这个手势冲突?

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 14, 2024

那个的实现是 UIScrollView 中又带 UIScrollView 吧?源码地址贴一下,应该是他实现了 gesture 的 delegate 了

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

https://github.com/jonathantribouharet/JT3DScrollView

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

如果像你说的又套了一个UIScrollView,那该怎么解?

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 14, 2024

貌似没有问题啊,看下 issue24分支

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

这个问题你在issue24分支已解决,但还没合并到master主分支吗? 我下的是主分支

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

我刚刚把master和issue24都下过来试过了,在图片模式右滑都不行。这个就放一放了,还有一个问题是全屏右滑后UITableView的左滑删除功能的左滑手势被吃掉了,这要怎么解呢?

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

我本来已经妥协用侧滑,产品经理说必须全屏右滑,郁闷死

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 14, 2024

issue24 和 master 代码是一样的,只是加了个 demo

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 14, 2024

可以 UIGesturedelegate 中返回 NOshouldBegin 那个方法,判断用户是向左还是向右

from rtrootnavigationcontroller.

easongtd avatar easongtd commented on May 14, 2024

恩,可以的兄弟,谢了。今天有空把方法贴出来:

  • (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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.