Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我[[UIApplication sharedApplication] setApplicationSupportsShakeToEdit:YES];用来检测shake event.
[[UIApplication sharedApplication] setApplicationSupportsShakeToEdit:YES];
shake
event
但有时如果我shake有点too fast,它似乎还sensitive不够,无法对晃动的动作做出反应。我什至一直在颤抖,几乎感觉不到我的手臂......
too fast
sensitive
我是否需要调整一些参数,或者我处理的摇晃结果不正确,它仍然可以处理最后一次摇晃运动?
据我所知,没有关于 setApplicationSupportsShakeToEdit 的参数需要调整。如果您想调整灵敏度,我会建议在以下 SO 答案中手动实施抖动运动检测的千禧一代的方法:
如何检测有人摇晃 iPhone?