#import"ViewController.h"
#import
@interfaceViewController()
@end
@implementationViewController
- (void)viewDidLoad {
[superviewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)touchesBegan:(nonnullNSSet *)touches withEvent:(nullableUIEvent*)event
{
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
- (void)motionBegan:(UIEventSubtype)motion withEvent:(nullableUIEvent*)event
{
NSLog(@"begin motion");
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(nullableUIEvent*)event
{
NSLog(@"end motion");
}
- (void)didReceiveMemoryWarning {
[superdidReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
网友评论