Pregunta

I'm new to IOS programming, I don't know how to judge the swinging direction of a device.And I have searched a long time for this question, but I only find very little about this. Could someone help me? Thanks very much!

¿Fue útil?

Solución

Try this:

I have search some post for you, hope to help.

how to detect direction of shake in iphone

How to determine the direction of a iPhone shake

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top