重力感应 5.1版本的 - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { // Update the accelerometer graph view deviceTilt.x = acceleration.x; deviceTilt.y = acceleration.y; }