Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 314a9a5

Browse files
跳转动画不太好看
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

Lines changed: 5 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /