iOS震动

//震动反馈
- (void)shake{
    UIImpactFeedbackGenerator *generator = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
    [generator impactOccurred];
}

你可能感兴趣的:(iOS震动)