简体   繁体   English

在iPhone应用程序中创建摇动

[英]Create shake movement in IPhone application

I want to create an application using shaking. 我想通过摇动创建一个应用程序。 That is when I shake my IPad, then the icon will be move automatically depends upon shaking. 就是说,当我摇晃iPad时,图标会根据摇晃而自动移动。

You should use accelerometer datas. 您应该使用加速度计数据。

Take a look at CoreMotion API http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CoreMotion_Reference/_index.html 看看CoreMotion API http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CoreMotion_Reference/_index.html

It's an easy way to use acce / gyro & co datas :-) 这是使用acce /陀螺仪和co数据的简单方法:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM