小编Cod*_*ace的帖子

如何使用Apple TV遥控器获取动作事件

有没有人想出如何使用新的Apple TV遥控器进行动作事件?谢谢.

我试过打电话

override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent?) {
    super.motionBegan(motion, withEvent: event)
    print("motion!")
}
override func motionEnded(motion: UIEventSubtype, withEvent event: UIEvent?) {
    super.motionEnded(motion, withEvent: event)
    print("motion ended!")
}
Run Code Online (Sandbox Code Playgroud)

有和没有电话超级给我什么都没有.

apple-tv swift tvos

7
推荐指数
1
解决办法
3358
查看次数

标签 统计

apple-tv ×1

swift ×1

tvos ×1