我试图复制应用程序“Dynolicious”的加速计算,但我不确定在哪里头来计算此。我使用Core Motion
还是使用其他数字进行计算?计算加速度(驾驶汽车)
我已经尝试使用Core Motion
的userAcceleraion
价值,但它并不像我所寻找的那样。
coreMotion = [[CMMotionManager alloc]init];
[coreMotion startDeviceMotionUpdates];
//then every second it updates my label...
NSString *accel = [NSString stringWithFormat:@"%f", [[coreMotion accelerometerData]acceleration].x];
accelerationLabel.text = accel;
即我想我的价值观出来像0.4,-0.4等