UIView 操作 - UISwipeGestureRecognizer

发布于 2024-10-25 00:11:37 字数 162 浏览 7 评论 0原文

我有一个连接到 UIView 的操作。该操作工作正常,直到我将 UIView 的 alpha 调低为 0。有谁知道为什么会发生这种情况或解决方法?

该操作适用于 UIView,当使用 UISwipeGestureRecognizer 滑动时,该 UIView 会执行操作。

谢谢

I have an action hooked up to a UIView. the action was working fine until I turned the alpha of the UIView down to 0. Does anyone know why this might happen or a workaround?

the action is for a UIView that when swiped with a UISwipeGestureRecognizer performs an action.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽清梦 2024-11-01 00:11:37

据我所知,alpha 值低于特定阈值(0.1 左右)的视图不会接收触摸事件。

AFAIK views that have an alpha value below a certain threshold (0.1 or so) don't receive touch events.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文