title: how to get data from Core Motion on iOS
body: <p>i have trouble getting the accelerometer data from core motion manager...i followed the documentation and it still doesn't work :(</p>
  
  <pre><code>self.manager = [[CMMotionManager alloc] init];
  self.manager.accelerometerUpdateInterval = 0.01;
  [self.manager startAccelerometerUpdates];
  
  CMAccelerometerData *newestAccel = self.manager.accelerometerData;
  
  int x, y, z;
  x = newestAccel.acceleration.x;
  y = newestAccel.acceleration.y;
  z = newestAccel.acceleration.z;
  </code></pre>
  
  <p>any help would be very much appreciated!!</p>