Comments (9)
@clearlovelyQ 你可以给自己自定义的view 添加点击手势 然后手势出发 消失动画 就可以了
from lstpopview.
感谢回复,已解决,不过又发现了一点小问题,xib自定义view的时候,view上的点击事件有延迟,我用你的demo测试,也是有一点延迟,不知道是什么问题,希望能看一下,感谢
from lstpopview.
自己验证了一下,不是xib的事情,我pop的动画设置的是LSTPopStyleScale,然后如果popView.popDuration 设置的比较长的话,目前设置的是1;会发现背景view和自定义的view,不是同时出现的,自定义view貌似早出现一点,然后此时如果点击自定义view上的点击事件,确实无法响应。然后,等背景view出现之后,就正常了
from lstpopview.
好的 哈哈
from lstpopview.
可以让背景view和自定义的view同时出现吗,测试了下,可能是因为动画的关系,自定义的view确实会出现的晚一点,此时如果快速点击view上的点击事件,确实会延迟。我第一次没找到原因是因为背景view是clearcolor
from lstpopview.
1621404981135808.mp4
from lstpopview.
可能我描述的您不是很理解,看上面视频,当我点击cell的时候,背景黑色的出现是有个过程的,而且是晚于pop出来的view的
from lstpopview.
@LoSenTrad 明白你的意思 自定义view的点击事件 确实是要view全完显示出来才能点击出发的
from lstpopview.
好的,那我就把动画时间设置短一点吧 @LoSenTrad
from lstpopview.
Related Issues (20)
- pod install 报错 HOT 6
- hemstyle会失效
- 都是广告
- customView 未添加到 window,调用 layoutIfNeeded 会有警告 HOT 4
- LSTPopView上添加一个CollectionView,Cell的didSelectItemAtIndexPath的方法不调用
- 第一个XPopup中创建第二个XPopup经常出现异常 HOT 7
- 如果只想竖屏不想支持横屏切换是否有参数可以设置? HOT 4
- 定时器调试 HOT 2
- Swift版本有没 HOT 6
- 状态栏高度计算有问题,在iPhone12上调试,得出20,应该是47才对。 HOT 2
- Keyboard 和 customview 并不在同一坐标系,在presentViewController的view中弹出popview的话,customViewMaxY计算不对
- Bug和实现效果疑问 HOT 1
- 拖拽为什么不能消失? HOT 1
- pan手势的问题
- 有个问题,你滑动收拾判断 是判断的底层是不是 UIscrollVIew 但是 我底层 不是这个 有另外的滑动手势,你给我关闭了,导致我的滑动手势不能用了
- 在调用[LSTPopView removeLastPopView];没有动画效果比较干吧,希望作者大大后期可以考虑添加此功能吧。
- 动画
- 有个问题 底部弹出的view中 有个 UITableView 底部有个输入框 当点击输入框的时候 HOT 2
- 点击customview 上的某个按钮,键盘消失了,而且没有处罚按钮点击事件。 HOT 1
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 lstpopview.