【iOS】Touch Up Inside 和 Touch Up Outside 的区别

Touch Up Inside:按下按钮,并且在按钮内部(inside)松手

Touch Up Outside:按下按钮,并且在按钮外部(outside)松手


[依据] 来自Apple官方文档 UIControlEvents

UIControlEventTouchUpInside:A touch-up event in the control where the finger is inside the bounds of the control.

UIControlEventTouchUpOutside:A touch-up event in the control where the finger is outside the bounds of the control.

❤ 点击这里 -> 订阅《PAT | 蓝桥 | LeetCode学习路径 & 刷题经验》by 柳婼

❤ 点击这里 -> 订阅《从放弃C语言到使用C++刷算法的简明教程》by 柳婼

❤ 点击这里 -> 订阅PAT甲级乙级、蓝桥杯、GPLT天梯赛、LeetCode题解离线版