ios - How to use CMDeviceMotion to detect how fast my device is traveling? -


i writing ios app , don't want start detecting shake events until after device has reached speed. know how use cmmotionmanager cmaccelerationdata detect shake events know should use detect how fast device moving? either cmdevicemoting/useracceleration/gps... cannot find should do. writing app in swift answers in objective-c suffice well.

thank help

you use corelocation , use cllocation's speed property. requires device's gps, , work large speeds.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -