如何使用模拟器使用tvOS接收触摸?我们需要知道触摸位置.UIPress - 没有它!
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event {
// Never called
}
-(void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(nullable UIPressesEvent *)event {
// Works fine!
}
Run Code Online (Sandbox Code Playgroud)