문제

I use [[UIApplication sharedApplication] setApplicationSupportsShakeToEdit:YES]; to detect the shake event.

But sometimes if I shake a little too fast,it seems not sensitive enough and can't response to shake movement. I even keep shaking and almost can't feel my arm...

Do I need adjust some parameters or I handle the shake result not correct that it still handle the last shake movement?

도움이 되었습니까?

해결책

To my knowledge there are no parameters to tweak regarding setApplicationSupportsShakeToEdit. If you want to adjust the sensitiveness, I would suggest the approach of millenomi who implemented the shake movement detection manually explained in the following SO answer:

How do I detect when someone shakes an iPhone?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top