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