如何检测iPhone在Objective-C或Swift中向下或向上移动?

How to detect the iPhone is falling down or moving upwards in Objective-C or Swift?

如何在Objective-C或Swift中检测设备是否向下或向上移动? Core Motion 仅在我们倾斜设备时检测运动我需要检测设备的自由落体。 iPhone是否有相关传感器计算下落速度?

苹果iPhone6已经集成barometer sensor so this might be the sensor that you are looking for. To access barometer data you will need to use CMAltimeter and CMAltitudeData