摇一摇(系统自带)//vc.m [UIApplication sharedApplication].applicationSupportsShakeToEdit = YES; [self bec
摇一摇(系统自带)
//vc.m [UIApplication sharedApplication].applicationSupportsShakeToEdit = YES; [self becomeFirstResponder];
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"开始摇动"); return;}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"摇动取消"); return;}