Commit 807d6b6b4fc954d540c8d2545ed118ba5c7df0fb
1 parent
22c1d020
提交0.1.6
Showing
2 changed files
with
6 additions
and
4 deletions
CNLiveAVCamera.podspec
CNLiveAVCamera/Classes/XFCameraController.m
| ... | ... | @@ -2279,9 +2279,11 @@ typedef void(^PropertyChangeBlock)(AVCaptureDevice *captureDevice); |
| 2279 | 2279 | |
| 2280 | 2280 | [alertController addAction:okAction]; |
| 2281 | 2281 | // [alertController addAction:setAction]; |
| 2282 | - | |
| 2283 | - [self presentViewController:alertController animated:YES completion:nil]; | |
| 2284 | - weakSelf.isAlertShow = YES; | |
| 2282 | + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ | |
| 2283 | + [self presentViewController:alertController animated:YES completion:nil]; | |
| 2284 | + weakSelf.isAlertShow = YES; | |
| 2285 | + }); | |
| 2286 | + | |
| 2285 | 2287 | |
| 2286 | 2288 | } |
| 2287 | 2289 | }]; | ... | ... |