ios - UIEvent 和 UIEventTypeMotion 仅拦截摇动手势吗?

标签 ios motion-detection uievent

阅读Apple documentation我发现 UIEventTypeMotion 仅对拦截 Shake 有用。听起来很奇怪...但是 UIEventTypeMotion 上的唯一子类型是 UIEventTypeMotionShake。 我无法理解如何以其他方式使用函数 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event ..

最佳答案

是的,目前它识别的唯一 Action 手势是摇晃。从外观上看,苹果将来可能会添加更多内容,但我们必须拭目以待:)

关于ios - UIEvent 和 UIEventTypeMotion 仅拦截摇动手势吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8673184/

相关文章:

iphone - 如何在一个方法中捕获并处理 UIButton 的所有事件?

ios - 如何让UIView停止接收触摸事件?

ios - 从 GameViewController 调用 GameScene 方法 : Thread 1 exc_bad_instruction (code=exc_i386_invop subcode=0x0)

ios - 如何在文档 Xcode 中添加对另一种方法的链接/引用?

c++ - opencv中的视频文件

ios - 如何将音频彼此叠加?

ios - 使兄弟 View 忽略任何触摸输入,另一个兄弟 View 应该接收它

ios - 类型 'NSPredicate has no subscript members'

cocoa-touch - 动画 UITableViewCell ContentView 在进入编辑模式时淡入淡出

Android 陀螺仪与加速度计