|
@@ -181,6 +181,10 @@
|
|
make.height.mas_offset(20);
|
|
make.height.mas_offset(20);
|
|
}];
|
|
}];
|
|
[self.view addSubview:self.authView];
|
|
[self.view addSubview:self.authView];
|
|
|
|
+ __weak typeof(self) weakSelf = self;
|
|
|
|
+ self.authView.closeBlock = ^{
|
|
|
|
+ weakSelf.panGesture.enabled = YES;
|
|
|
|
+ };
|
|
[self.authView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.authView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.edges.mas_offset(0);
|
|
make.edges.mas_offset(0);
|
|
}];
|
|
}];
|
|
@@ -1154,6 +1158,7 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
if (showVideoAlert && showAlert) {
|
|
if (showVideoAlert && showAlert) {
|
|
|
|
+ self.panGesture.enabled = NO;
|
|
[self.authView showAutherWith:PCSAuthPhoneAndMir];
|
|
[self.authView showAutherWith:PCSAuthPhoneAndMir];
|
|
return YES;
|
|
return YES;
|
|
}
|
|
}
|
|
@@ -1167,6 +1172,7 @@
|
|
switch (staus) {
|
|
switch (staus) {
|
|
case AVAuthorizationStatusDenied:{
|
|
case AVAuthorizationStatusDenied:{
|
|
[self.authView showAutherWith:PCSAuthPhone];
|
|
[self.authView showAutherWith:PCSAuthPhone];
|
|
|
|
+ self.panGesture.enabled = NO;
|
|
|
|
|
|
// [self showAlertForAuthorizationWithText:@"请在系统设置里打开摄像机访问权限后重试"];
|
|
// [self showAlertForAuthorizationWithText:@"请在系统设置里打开摄像机访问权限后重试"];
|
|
showAlert = YES;
|
|
showAlert = YES;
|
|
@@ -1186,7 +1192,7 @@
|
|
|
|
|
|
case AVAuthorizationStatusDenied:{
|
|
case AVAuthorizationStatusDenied:{
|
|
[self.authView showAutherWith:PCSAuthMir];
|
|
[self.authView showAutherWith:PCSAuthMir];
|
|
-
|
|
|
|
|
|
+ self.panGesture.enabled = NO;
|
|
// [self showAlertForAuthorizationWithText:@"请在系统设置里打开麦克风访问权限后重试"];
|
|
// [self showAlertForAuthorizationWithText:@"请在系统设置里打开麦克风访问权限后重试"];
|
|
showAlert = YES;
|
|
showAlert = YES;
|
|
break;
|
|
break;
|