0
iOS 10模拟器突然崩溃。有没有人设法让iPad iOS 10模拟器触发震动事件?
准备用:
[[UIApplication sharedApplication] setApplicationSupportsShakeToEdit:YES];
实现:
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event
而且-motionBegan永远不会被调用。