Giter Site home page Giter Site logo

关于CWInteractiveTransition里UIGestureRecognizerDelegate判断控制器类的时个写死UITableViewController不太好 about cwlateralslide HOT 3 CLOSED

chavezchen avatar chavezchen commented on August 20, 2024
关于CWInteractiveTransition里UIGestureRecognizerDelegate判断控制器类的时个写死UITableViewController不太好

from cwlateralslide.

Comments (3)

ChavezChen avatar ChavezChen commented on August 20, 2024 1

已经提供了自定义手势处理接口

from cwlateralslide.

ChavezChen avatar ChavezChen commented on August 20, 2024

我没有用过ASDK哦。所以暂时木有能了解它是如何做的。。简单说一下我为什么这么写:我这个手势是加在控制器的view上的,如果在控制器的view上面再添加一个tableview,那么手势首先会响应上层的tableview,如果tableview不能响应再会给控制器的view(也就是我的手势)来响应,所以整个过程不会有什么问题,一切正常。但是如果控制器是一个tableviewController,我在这个控制器的view上面再添加一个手势,其实就是类似我在这个tableview上面加了一个pan手势,于是就会先响应我的pan手势,导致tableviewController的tableview本身的手势无法响应,就是表格无法滑动,于是这里这么写就是为了能够解决这个手势冲突的问题。。这样写是目前能满足大部分人的方式咯。。。当然各种特殊场景手势问题会有所不同,就只能烦请自己改一改了哦。。。当时想封装一个属性给来设置这个,但是暂时没想到满意的方式

from cwlateralslide.

smoothdvd avatar smoothdvd commented on August 20, 2024

@ChavezChen 有空我写个PR

from cwlateralslide.

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.