I am using the UIAccelerotmeterDelegate method accelerometer:didAccelerate: but recently that method has been deprecated in iOS 5.0. So what is the alternative way
UIAccelerotmeterDelegate
Its replaced by CoreMotion. See Motion Events.
CoreMotion