有没有人想出如何使用新的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)
有和没有电话超级给我什么都没有.