title: How to get accelerometer data in IOS?
body: <p>I am using the <code>UIAccelerotmeterDelegate</code> method <a href="https://developer.apple.com/documentation/uikit/uiaccelerometerdelegate/1620653-accelerometer" rel="nofollow noreferrer"><code>accelerometer:didAccelerate:</code></a> but recently that method has been deprecated in iOS 5.0. So what is the alternative way to get the accelerometer data? The documentation does not mention the alternative we are supposed to use.</p>