how to check is a button still pressed (clicked) or not?
I need to know the state of the bu开发者_如何学JAVAtton at this time if clicked or not ?
thanks
if (myButton.state & UIControlStateHighlighted) {
// Do your stuff the user is currently holding down her finger…
}
take a look at the state property of your UIButton. You're interested in UIControlStateHighlighted.
精彩评论