【发布时间】:2011-05-11 09:46:14
【问题描述】:
我需要知道此时按钮的状态是否被点击?
谢谢
【问题讨论】:
标签: iphone objective-c cocoa-touch ipad uikit
我需要知道此时按钮的状态是否被点击?
谢谢
【问题讨论】:
标签: iphone objective-c cocoa-touch ipad uikit
if (myButton.state & UIControlStateHighlighted) {
// Do your stuff the user is currently holding down her finger…
}
【讨论】:
查看 UIButton 的 state 属性。你对 UIControlStateHighlighted 感兴趣。
【讨论】: