문제

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!

도움이 되었습니까?

해결책

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

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