如何在siri遥控器的触摸板上检测到“点按”,而不仅仅是点按? 编辑: 我的主要问题是我的观点有一个接收该事件的UIButton. 通过阅读UIPressesEvent的. Detecting Gestures and Button Presses overrid
编辑:
我的主要问题是我的观点有一个接收该事件的UIButton.
override func pressesEnded(presses: Set<UIPress>, withEvent event: UIPressesEvent?) {
for press in presses {
if (press.type == .Select) {
// Select is pressed
} else {
super.pressesEnded(presses, withEvent: event)
}
}
}
