简体   繁体   English

UIView操作-UISwipeGestureRecognizer

[英]UIView action - UISwipeGestureRecognizer

I have an action hooked up to a UIView. 我有一个连接到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? 在我将UIView的Alpha值降低到0之前,该操作一直工作良好。有人知道为什么会发生这种情况或解决方法吗?

the action is for a UIView that when swiped with a UISwipeGestureRecognizer performs an action. 该操作适用于使用UISwipeGestureRecognizer滑动时执行操作的UIView。

thanks 谢谢

Alpha值低于特定阈值(0.1左右)的AFAIK视图不会收到触摸事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM