Issue
How can I detect a "click press", not just a tap, on the touchpad on siri remote?
EDIT: My main problem was that my view had an UIButton that received the event.
Solution
By reading the UIPressesEvent's. Detecting Gestures and Button Presses
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)
}
}
}
Answered By - Jeroen Bakker Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.