Code Monkey home page Code Monkey logo

Comments (9)

LoSenTrad avatar LoSenTrad commented on July 20, 2024

@clearlovelyQ 你可以给自己自定义的view 添加点击手势 然后手势出发 消失动画 就可以了

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024

感谢回复,已解决,不过又发现了一点小问题,xib自定义view的时候,view上的点击事件有延迟,我用你的demo测试,也是有一点延迟,不知道是什么问题,希望能看一下,感谢

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024

自己验证了一下,不是xib的事情,我pop的动画设置的是LSTPopStyleScale,然后如果popView.popDuration 设置的比较长的话,目前设置的是1;会发现背景view和自定义的view,不是同时出现的,自定义view貌似早出现一点,然后此时如果点击自定义view上的点击事件,确实无法响应。然后,等背景view出现之后,就正常了

from lstpopview.

LoSenTrad avatar LoSenTrad commented on July 20, 2024

好的 哈哈

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024

可以让背景view和自定义的view同时出现吗,测试了下,可能是因为动画的关系,自定义的view确实会出现的晚一点,此时如果快速点击view上的点击事件,确实会延迟。我第一次没找到原因是因为背景view是clearcolor

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024
1621404981135808.mp4

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024

可能我描述的您不是很理解,看上面视频,当我点击cell的时候,背景黑色的出现是有个过程的,而且是晚于pop出来的view的

from lstpopview.

LoSenTrad avatar LoSenTrad commented on July 20, 2024

@LoSenTrad 明白你的意思 自定义view的点击事件 确实是要view全完显示出来才能点击出发的

from lstpopview.

clearlovelyQ avatar clearlovelyQ commented on July 20, 2024

好的,那我就把动画时间设置短一点吧 @LoSenTrad

from lstpopview.

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.