Skip to content

Commit 07d2be3

Browse files
guangyaoguangyao
authored andcommitted
Fix
1 parent 9d9babf commit 07d2be3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

ios/RCTAuroraIMUI/DWCustomView/DWOrigImageView.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ - (void)image: (UIImage *) image didFinishSavingWithError: (NSError *) error con
128128
}else{
129129
msg = @"保存图片成功" ;
130130
}
131-
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:msg message:@"" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil];
132-
[alert show];
131+
dispatch_async(dispatch_get_main_queue(), ^{
132+
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:msg message:@"" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil];
133+
[alert show];
134+
});
133135
}
134136

135137

ios/RCTAuroraIMUI/DWCustomView/InputView/DWRecordButton.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ - (BOOL)getVoiceAVAuthorizationStatus{
198198
isHasVoiceAuth = YES;
199199
}else{
200200
isHasVoiceAuth = NO;
201-
UIAlertView * alart = [[UIAlertView alloc]initWithTitle:@"温馨提示" message:@"请您设置允许APP访问您的麦克风\n设置>隐私>麦克风" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
202-
[alart show];
201+
dispatch_async(dispatch_get_main_queue(), ^{
202+
UIAlertView * alart = [[UIAlertView alloc]initWithTitle:@"温馨提示" message:@"请您设置允许APP访问您的麦克风\n设置>隐私>麦克风" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
203+
[alart show];
204+
});
203205
}
204206
}];
205207
return isHasVoiceAuth;

0 commit comments

Comments
 (0)