首页 > iOS 中 UIControlEventTouchCancel 事件该怎么触发啊?

iOS 中 UIControlEventTouchCancel 事件该怎么触发啊?

iOS 中 UIControlEventTouchCancel 事件该怎么触发啊?


手指点击,然后滑出屏幕试试?


UIControlEventTouchCancel

所有触摸取消事件,即一次触摸因为放上了太多手指而被取消,或者被上锁或者电话呼叫打断。
另外,感觉LZ想要捕捉的是手指在按钮外时的情况,此时想要想要触发按钮本身的响应事件.这种情况,应该使用 捕捉 UIControlEventTouchUpOutside 事件

【热门文章】
【热门文章】