What replaces the iOS 5 deprecated accelerometer:didAccelerate?

mobibob picture mobibob · Feb 3, 2013 · Viewed 9k times · Source

Hmmm ... I am behind the times and trying to port over some old code to a new application and the accelerator delegation is deprecated. There must be a replacement. Please point me to the docs and get me jump started.

Answer

Anton picture Anton · Feb 3, 2013

The accelerometer was replaced by the Core Motion framework. Here are the docs: http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CoreMotion_Reference/_index.html

You may also find this answer helpful: Why is accelerometer:didAccelerate: deprecated in IOS5?