A simple demonstration of the CMAltimeter class and barometer sensor on iPhone 6 / 6 Plus and newer.
Tap the switch to turn on relative altitude and pressure updates. Tap the switch again to turn off updates.
Requires iOS 8+ and an iPhone 6 / 6 Plus or newer