I'm using xcode 4.2 (and going to be upgrading soon) and these lines of code
[[UIAccelerometer sharedAccelerometer] setUpdateInterval:(1.0 / kAccelerometerFrequency)];
[[UIAccelerometer sharedAccelerometer] setDelegate:self];
the code works but I have a yellow warning saying that the code is deprecated and I looked at the new references and CoreMotion now does the Accelerometer. I was wondering what is the new way to write something like the above..?
 
                        
Start accelerometer.
stop accelerometer