- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (event.subtype == UIEventSubtypeMotionShake) { NSLog(@"摇晃中"); } } - (BOOL)canBecomeFirstResponder{ return YES; }
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (event.subtype == UIEventSubtypeMotionShake) { NSLog(@"摇晃中"); } } - (BOOL)canBecomeFirstResponder{ return YES; }