UIView 操作 - UISwipeGestureRecognizer
我有一个连接到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,alpha 值低于特定阈值(0.1 左右)的视图不会接收触摸事件。
AFAIK views that have an alpha value below a certain threshold (0.1 or so) don't receive touch events.