Frage

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?

War es hilfreich?

Lösung

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?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top