Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 ipad 用户何时开始/停止驾驶或在车辆中移动。我可以使用 CLLocationManager 获取当前位置。任何想法,将不胜感激。谢谢
最简单的方法是使用
if (location.getSpeed() > speedThreshold) { status = DRIVING; }