Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有框架或库涵盖用户提交的基本动作,例如向上移动设备、向下抛掷设备、翻转等。基于 iOS 中的加速度计
Core Motion 框架将是最佳选择。你可以在这里找到一个很好的教程。
http://nscookbook.com/2013/03/ios-programming-recipe-19-using-core-motion-to-access-gyro-and-accelerometer/