0

私は実装しました

 - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {

誰かが iPhone の揺れを止めたときの揺れを捉えたいのですが、揺れの始まりを特定する必要があります。

4

2 に答える 2

2

- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {

于 2011-06-14T15:08:46.923 に答える
1

これを読んでみてください:

http://devinsheaven.com/cocoa-touch-tutorial-recoming-using-the-shake-api-for-iphone-os-3/

于 2011-06-14T15:05:12.683 に答える