Domanda

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?

È stato utile?

Soluzione

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?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top