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-receiving-using-the-shake-api-for-iphone-os-3/

于 2011-06-14T15:05:12.683 回答