- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ //检测到后可做一些处理 }2)摇一摇被取消或中断
- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event{ }3)摇动结束
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event{ //结束后可做一些处理 }上述三个方法均继承UIKit中的UIResponder.h ,无需import类,也无需继承Delegate便可直接使用