Commit 54ba96b7 by ludi

修复震动问题

parent faa81f5c
......@@ -904,6 +904,10 @@ NSString * const kEVENT_RECHARGE_FIRST_RECHARGE_WINDOW_RECEIVE_OFFICIAL_RECAHARG
__block NSInteger timerDurationInt = durationInt;
if (@available(iOS 13.0, *)) {
[[AVAudioSession sharedInstance] setAllowHapticsAndSystemSoundsDuringRecording:YES error:nil];
}
[self.vibrateTimer invalidate];
self.vibrateTimer = nil;
UINotificationFeedbackGenerator *generator = [[UINotificationFeedbackGenerator alloc] init];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment