CMMotionManager を使用して加速度計データを収集しています。次のように、更新間隔を0.5秒ごとに設定しようとしています:
[_motionManager setDeviceMotionUpdateInterval:.5];
[_motionManager startAccelerometerUpdatesToQueue:[[NSOperationQueue alloc] init]
withHandler:^(CMAccelerometerData *accelerometerData, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
[self performSelectorOnMainThread:@selector(update:) withObject:accelerometerData waitUntilDone:NO];
});}];
それでも、0.5 秒ごとよりもはるかに頻繁に更新を受け取ります。理由はありますか?