Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What replaces the iOS 5 deprecated accelerometer:didAccelerate? [closed]

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.

like image 627
mobibob Avatar asked Feb 03 '13 02:02

mobibob


1 Answers

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?

like image 133
Anton Avatar answered Sep 21 '22 04:09

Anton