标签: iphone objective-c cocoa-touch ipad uikit
如果点击或不点击,我需要知道按钮的状态吗?
感谢
答案 0 :(得分:0)
看看你的UIButton的状态属性。您对UIControlStateHighlighted感兴趣。
答案 1 :(得分:0)
if (myButton.state & UIControlStateHighlighted) { // Do your stuff the user is currently holding down her finger… }