摘要:
blog :http://blog.sallarp.com/iphone-accelerometer-device-orientation/float x = -accelerometerData.acceleration.x; float y = accelerometerData.acceleration.y; float angle = atan2(y, x); if(angle >= -2.25f && angle = -0.75f && angle = 0.75f && angle = 2.25f) { currentOrient 阅读全文