标签: iphone shake
我实施了
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
答案 0 :(得分:2)
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {
答案 1 :(得分:1)
尝试阅读:
http://devinsheaven.com/cocoa-touch-tutorial-receiving-using-the-shake-api-for-iphone-os-3/