问题描述
|
我已经实现了
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
当某人结束iPhone的震动时捕获震动,但是我需要确定震动的开始,怎么办?
解决方法
尝试阅读以下内容:
http://devinsheaven.com/cocoa-touch-tutorial-receiving-using-the-shake-api-for-iphone-os-3/
,
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {