Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top