Skip to content

Commit 314a9a5

Browse files
committed
跳转动画不太好看
1 parent ffe7527 commit 314a9a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Coding_iOS/Controllers/RootControllers/Project_RootViewController.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,12 @@ - (void)dealWithScanResult:(NSString *)resultStr ofVC:(ZXScanCodeViewController
627627
[alertV bk_setWillDismissBlock:^(UIAlertView *al, NSInteger index) {
628628
if (index == 1) {
629629
[[UIApplication sharedApplication] openURL:URL];
630+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
631+
[self.navigationController popViewControllerAnimated:YES];
632+
});
633+
}else{
634+
[self.navigationController popViewControllerAnimated:YES];
630635
}
631-
[self.navigationController popViewControllerAnimated:YES];
632636
}];
633637
[alertV show];
634638
}else if (resultStr.length > 0){

0 commit comments

Comments
 (0)