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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -