[英]how to check is a button still pressed (clicked) or not?
I need to know the state of the button at this time if clicked or not ? 如果点击或不点击,此时我需要知道按钮的状态?
thanks 谢谢
take a look at the state property of your UIButton. 看看你的UIButton的州财产。 You're interested in UIControlStateHighlighted. 您对UIControlStateHighlighted感兴趣。
if (myButton.state & UIControlStateHighlighted) {
// Do your stuff the user is currently holding down her finger…
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.