我试图计算运动时间(步行或跑步)。 每个CMMotionActivity对象都有一个startDate属性,指示活动开始的时间。但没有迹象显示结束时间。
有没有解决方案?
答案 0 :(得分:2)
Every CMMotionActivity object is succeeded by another CMMotionActivity object. Each has a startDate
property that indicates the time at which the activity started. Thus, the end time of each CMMotionActivity object is given by the startDate
of its successor.