@doregon didn't like it, so return to blur-then-terminate

but "According to Apple, ~~your app should not terminate on its own~~. Since the user did not hit the Home button, any return to the Home screen gives the user the impression that your app crashed. This is confusing, non-standard behavior and should be avoided."
This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-10-02 09:28:57 +07:00
1 parent 9f2b5be409
commit ed54dd8474
1 file changed
+5 -2
+5 -2
View File
@@ -568,8 +568,11 @@ NSString *lib_zink = @"libOSMesaOverride.dylib";
[blurView setAlpha:0];
[self.view addSubview:blurView];
[[UIApplication sharedApplication] performSelector:@selector(suspend)];
exit(0);
[UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
[blurView setAlpha:1];
} completion:^(BOOL finished) {
exit(0);
}];
}
-(void)instanceDirCont {