iOS 8 CoreMotion sample